1 1
Ali-leb

HOW TO CLONE EMMC (NANOPI NEO CORE)

Recommended Posts

TRYING TO CLONE EMMC FROM ONE NEO CORE INTO ANOTHER.

I found this link below :

https://github.com/zador-blood-stained/fel-mass-storage

 

I still don't know if it works since i had to enter FEL MODE which i could not. maybe i am  trying in a wrong way.

 

SO how could i get a clone EMMC of nanopi neo core (taking into consideration it might not have FEL mode)? but if it does then how to enter this mode?

and how to run this clone on another nanopi neo core?

 

 

Share this post


Link to post
Share on other sites

If I had the same needs you have, I will boot both boards with SDCard, get the network working between both boards, and use the following command from an SSH on Board2 to achieve copy :

ssh root@<ip_board1> dd if=/dev/mmcblk2 | dd of=/dev/mmcblk2 bs=100M

(this is assuming both eMMC are on /dev/mmcblk2 ...)

Share this post


Link to post
Share on other sites

this way could i save an image of the emmc on my pc ? if not then how could I? 

and if it was saved on my desktop then could i just simply write it to the nanopi !?

Share this post


Link to post
Share on other sites
On 8/28/2019 at 4:12 AM, Ali-leb said:

this way could i save an image of the emmc on my pc ? if not then how could I?

Not exactly since it is writing directly to the other eMMC.

To backup eMMC into a images on Linux PC, it would be :

ssh root@<ip_board_to_be_backup> "dd if=/dev/mmcblk2" | dd of=backup_image.img bs=100M

 

Share this post


Link to post
Share on other sites

THANKS !!! now I have this image on my pc but how could I write this image to the nanopi neo core without using sd card ?  tried connecting it directly through micro usb cable but it was not observed as a  usb device  it was only observed as a port ! so I could not just simply write it through win32 disk imager.

 

is it something related to FEL MODE ? and how to check if board supports this mode?

Share this post


Link to post
Share on other sites
2 hours ago, sami said:

how could I write this image to the nanopi neo core without using sd card ?

Personally, I will still boot from SD Card to push back the backup image into eMMC .

I don't know much about FEL mode, maybe it could work, but maybe not ...

Share this post


Link to post
Share on other sites

But you have to be aware that when booting from emmc you will then lose option to boot from emmc when commanding armbian-config. This option will no more be available.

What i am trying to say is that if someone took an image of the emmc then he may not be able to flash this image to emmc by armbian-config command. And i do not know any other option for you my friend.

Share this post


Link to post
Share on other sites

But you have to be aware that when booting from emmc you will then lose option to boot from emmc when commanding armbian-config. This option will no more be available.

What i am trying to say is that if someone took an image of the emmc then he may not be able to flash this image to emmc by armbian-config command. And i do not know any other option for you my friend.

Share this post


Link to post
Share on other sites

@martinayotte

thanks for your help 

 

i took an image of my emmc through this command :

ssh root@<ip_board_to_be_backup> dd if=/dev/mmcblk2 | dd of=backup_image.img bs=100M

 

then i transfered the image to my desktop using winscp.

then i wrote this image to sd card using win32diskimager.

tried to boot from this sd card to install to another emmc but the nanopi was not recognizing my sd card. it was not booting from sd card  !  is there something missing ?

Share this post


Link to post
Share on other sites
3 hours ago, Ali-leb said:

ssh root@<ip_board_to_be_backup> dd if=/dev/mmcblk2 | dd of=backup_image.img bs=100M

 

then i transfered the image to my desktop using winscp.

Maybe I missled you : you need to do that command from a Linux PC shell, and I forgot the double quote around the first "dd" command (corrected in above post), it should be :

ssh root@<ip_board_to_be_backup> "dd if=/dev/mmcblk2" | dd of=backup_image.img bs=100M

The second "dd" command will make the writing of the backup_image.img locally on your Linux PC, so no needs to do a "wincp".

 

If you are on Windows, that won't work ...

 

Another way to do that backup would be to plug your USB-SDCard reader directly into the USB port of the SBC and doing the backup directly :

 

dd if=/dev/mmcblk2 of=/dev/sda bs=100M

But, in any case, you need to have a SDCard bigger than the eMMC size ...

Share this post


Link to post
Share on other sites

@martinayotte 

4 hours ago, martinayotte said:

ssh root@<ip_board_to_be_backup> "dd if=/dev/mmcblk2" | dd of=backup_image.img bs=100M

i tried to use this command but it is not recognized ! 

did you mean it this way ? dd if="/dev/mmcblk2" | dd of=backup_image.img bs=100M

you might have miss located the double quotates !  and the image was still trying to save on the SBC  itself and not on the linux pc where i tried to do this using the terminal after logging in using ssh root@ip ...

4 hours ago, martinayotte said:

dd if=/dev/mmcblk2 of=/dev/sda bs=100M

i tried this command as well after putting the sd card through usb-card reader but it didnot work as well ... the sd card was not recognized again and it was booting from emmc again.

 

i am trying to understand something! i have an 8 GB emmc and i am running this command  with this output :

# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            179M     0  179M   0% /dev
tmpfs            50M  3.3M   46M   7% /run
/dev/mmcblk1p1  7.1G 1023M  5.7G  16% /
tmpfs           247M     0  247M   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           247M     0  247M   0% /sys/fs/cgroup
tmpfs           247M  4.0K  247M   1% /tmp
/dev/zram0       49M  2.7M   43M   6% /var/log
tmpfs            50M     0   50M   0% /run/user/0

 

this means that my emmc is located at /dev/mmcblk1p1 right ?  because everytime i am replacing mmcblk2 with  mmcblk1p1 ... i am trying to to give more information so it would be easier to help and every help is appreciated ! thanks a lot

Share this post


Link to post
Share on other sites
3 minutes ago, Ali-leb said:

did you mean it this way ? dd if="/dev/mmcblk2" | dd of=backup_image.img bs=100M

 

No ! The double needs to be around the whole command exucuted by the SSH, so "dd if=/dev/mmcblk2" or in your case "dd if=/dev/mmcblk1" , but let forget this first solution and stick with the second one :

You should not use "/dev/mmcblk1p1" since it is only the first partition without partition table. With USB-SDCard adaptor plugged, it should be :

dd if=/dev/mmcblk1 of=/dev/sda bs=100M

 

Share this post


Link to post
Share on other sites

dd if=/dev/mmcblk1 of=/dev/sda bs=100M
dd: error writing '/dev/sda': No space left on device

 

this might be something related to the sd card i think after i did this 
dd if=/dev/mmcblk1p1 of=/dev/sda bs=100M

 

but the issue is that i used another sd card and still gives the same thing.

 

#dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.62-sunxi (root@armbian.com) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #5.92 SMP Wed Jul 31 22:07:23 CEST 2019
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: FriendlyARM NanoPi NEO
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 128 MiB at 0x57c00000
[    0.000000] On node 0 totalpages: 131072
[    0.000000]   Normal zone: 1152 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] random: get_random_bytes called from start_kernel+0x8d/0x3c6 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu s41548 r8192 d23988 u73728
[    0.000000] pcpu-alloc: s41548 r8192 d23988 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: root=UUID=c233df5a-c066-4c4b-af4e-25a2e20f77c3 rootwait rootfstype=ext4 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 loglevel=1 ubootpart= ubootsource=mmc usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] allocated 524288 bytes of page_ext
[    0.000000] Memory: 365320K/524288K available (9216K kernel code, 1004K rwdata, 2580K rodata, 1024K init, 331K bss, 27896K reserved, 131072K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
                   lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                   modules : 0xbf800000 - 0xbfe00000   (   6 MB)
                     .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)
                     .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
                     .data : 0x(ptrval) - 0x(ptrval)   (1005 kB)
                      .bss : 0x(ptrval) - 0x(ptrval)   ( 332 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 39997 entries in 79 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000011] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000028] Switching to timer-based delay loop, resolution 41ns
[    0.000332] Console: colour dummy device 80x30
[    0.000412] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000433] pid_max: default: 32768 minimum: 301
[    0.000800] Security Framework initialized
[    0.000821] AppArmor: AppArmor disabled by boot time parameter
[    0.000955] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000971] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002534] CPU: Testing write buffer coherency: ok
[    0.003280] CPU0: update cpu_capacity 1024
[    0.003293] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.004352] Setting up static identity map for 0x40100000 - 0x40100054
[    0.004624] rcu: Hierarchical SRCU implementation.
[    0.006044] smp: Bringing up secondary CPUs ...
[    0.017312] CPU1: update cpu_capacity 1024
[    0.017324] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.028776] CPU2: update cpu_capacity 1024
[    0.028788] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.040128] CPU3: update cpu_capacity 1024
[    0.040139] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.040326] smp: Brought up 1 node, 4 CPUs
[    0.040340] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[    0.040348] CPU: All CPU(s) started in HYP mode.
[    0.040353] CPU: Virtualization extensions available.
[    0.042434] devtmpfs: initialized
[    0.055255] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.055654] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.055683] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.064959] xor: measuring software checksum speed
[    0.104215]    arm4regs  :   598.000 MB/sec
[    0.144324]    8regs     :   356.000 MB/sec
[    0.184457]    32regs    :   365.000 MB/sec
[    0.224576]    neon      :   605.000 MB/sec
[    0.224584] xor: using function: neon (605.000 MB/sec)
[    0.224697] pinctrl core: initialized pinctrl subsystem
[    0.226373] NET: Registered protocol family 16
[    0.230821] DMA: preallocated 2048 KiB pool for atomic coherent allocations
[    0.231730] audit: initializing netlink subsys (disabled)
[    0.232115] audit: type=2000 audit(0.204:1): state=initialized audit_enabled=0 res=1
[    0.232929] cpuidle: using governor ladder
[    0.232994] cpuidle: using governor menu
[    0.234030] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.234039] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.333259] raid6: int32x1  gen()    89 MB/s
[    0.401601] raid6: int32x1  xor()    76 MB/s
[    0.469763] raid6: int32x2  gen()   122 MB/s
[    0.537870] raid6: int32x2  xor()    94 MB/s
[    0.606046] raid6: int32x4  gen()   123 MB/s
[    0.674250] raid6: int32x4  xor()    91 MB/s
[    0.742839] raid6: int32x8  gen()   118 MB/s
[    0.810920] raid6: int32x8  xor()    82 MB/s
[    0.879040] raid6: neonx1   gen()   235 MB/s
[    0.947261] raid6: neonx1   xor()   219 MB/s
[    1.015639] raid6: neonx2   gen()   316 MB/s
[    1.083801] raid6: neonx2   xor()   282 MB/s
[    1.152036] raid6: neonx4   gen()   379 MB/s
[    1.220352] raid6: neonx4   xor()   318 MB/s
[    1.288667] raid6: neonx8   gen()   341 MB/s
[    1.356833] raid6: neonx8   xor()   288 MB/s
[    1.356841] raid6: using algorithm neonx4 gen() 379 MB/s
[    1.356847] raid6: .... xor() 318 MB/s, rmw enabled
[    1.356854] raid6: using neon recovery algorithm
[    1.359361] SCSI subsystem initialized
[    1.359733] libata version 3.00 loaded.
[    1.360086] usbcore: registered new interface driver usbfs
[    1.360177] usbcore: registered new interface driver hub
[    1.360318] usbcore: registered new device driver usb
[    1.360655] media: Linux media interface: v0.10
[    1.360711] videodev: Linux video capture interface: v2.00
[    1.360999] pps_core: LinuxPPS API ver. 1 registered
[    1.361008] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.361038] PTP clock support registered
[    1.363985] clocksource: Switched to clocksource arch_sys_counter
[    1.578313] VFS: Disk quotas dquot_6.6.0
[    1.578447] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.593803] NET: Registered protocol family 2
[    1.595184] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    1.595237] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    1.595341] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    1.595463] TCP: Hash tables configured (established 4096 bind 4096)
[    1.595647] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    1.595709] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    1.596170] NET: Registered protocol family 1
[    1.597156] RPC: Registered named UNIX socket transport module.
[    1.597165] RPC: Registered udp transport module.
[    1.597171] RPC: Registered tcp transport module.
[    1.597178] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.597662] Trying to unpack rootfs image as initramfs...
[    2.385849] Freeing initrd memory: 6592K
[    2.389310] Initialise system trusted keyrings
[    2.389669] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    2.401295] zbud: loaded
[    2.405681] NFS: Registering the id_resolver key type
[    2.405730] Key type id_resolver registered
[    2.405736] Key type id_legacy registered
[    2.405759] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.405767] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.407857] JFS: nTxBlock = 3929, nTxLock = 31436
[    2.416136] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.431436] Key type asymmetric registered
[    2.431453] Asymmetric key parser 'x509' registered
[    2.431565] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    2.431834] io scheduler noop registered
[    2.431844] io scheduler deadline registered
[    2.432235] io scheduler cfq registered (default)
[    2.432246] io scheduler mq-deadline registered
[    2.432255] io scheduler kyber registered
[    2.432533] io scheduler bfq registered
[    2.434696] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    2.442630] sun8i-h3-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    2.445768] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    2.544248] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    2.548617] console [ttyS0] disabled
[    2.568869] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 43, base_baud = 1500000) is a U6_16550A
[    2.568964] console [ttyS0] enabled
[    2.593723] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 44, base_baud = 1500000) is a U6_16550A
[    2.618298] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 45, base_baud = 1500000) is a U6_16550A
[    2.642883] 1c28c00.serial: ttyS3 at MMIO 0x1c28c00 (irq = 46, base_baud = 1500000) is a U6_16550A
[    2.653716] brd: module loaded
[    2.664379] loop: module loaded
[    2.668678] libphy: Fixed MDIO Bus: probed
[    2.669706] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    2.669790] dwmac-sun8i 1c30000.ethernet: No regulator found
[    2.670386] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 58000)
[    2.670422] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    2.670433] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    2.670445] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    2.670456] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    2.670468] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    2.670479] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    2.670717] libphy: stmmac: probed
[    2.671657] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    2.671845] libphy: mdio_mux: probed
[    2.671882] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    2.671897] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    2.693147] libphy: mdio_mux: probed
[    2.694902] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.694912] ehci-platform: EHCI generic platform driver
[    2.695269] ehci-platform 1c1a000.usb: EHCI Host Controller
[    2.695318] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    2.696916] ehci-platform 1c1a000.usb: irq 27, io mem 0x01c1a000
[    2.712025] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    2.712535] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    2.712551] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.712562] usb usb1: Product: EHCI Host Controller
[    2.712574] usb usb1: Manufacturer: Linux 4.19.62-sunxi ehci_hcd
[    2.712585] usb usb1: SerialNumber: 1c1a000.usb
[    2.713630] hub 1-0:1.0: USB hub found
[    2.713718] hub 1-0:1.0: 1 port detected
[    2.715323] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.715370] ohci-platform: OHCI generic platform driver
[    2.715666] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    2.715707] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    2.716135] ohci-platform 1c1a400.usb: irq 28, io mem 0x01c1a400
[    2.780485] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 4.19
[    2.780501] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.780514] usb usb2: Product: Generic Platform OHCI controller
[    2.780525] usb usb2: Manufacturer: Linux 4.19.62-sunxi ohci_hcd
[    2.780536] usb usb2: SerialNumber: 1c1a400.usb
[    2.781416] hub 2-0:1.0: USB hub found
[    2.781505] hub 2-0:1.0: 1 port detected
[    2.783863] usbcore: registered new interface driver usb-storage
[    2.785338] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0
[    2.785350] sun6i-rtc 1f00000.rtc: RTC enabled
[    2.785723] i2c /dev entries driver
[    2.789191] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    2.790556] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[    2.791593] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    2.792033] ledtrig-cpu: registered to indicate activity on CPUs
[    2.792163] hidraw: raw HID events driver (C) Jiri Kosina
[    2.792377] usbcore: registered new interface driver usbhid
[    2.792382] usbhid: USB HID core driver
[    2.800252] Initializing XFRM netlink socket
[    2.801492] NET: Registered protocol family 10
[    2.816214] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    2.817053] sunxi-mmc 1c11000.mmc: Linked as a consumer to regulator.2
[    2.844081] sunxi-mmc 1c11000.mmc: initialized, max. request size: 16384 KB
[    2.881639] Segment Routing with IPv6
[    2.881819] NET: Registered protocol family 17
[    2.881866] NET: Registered protocol family 15
[    2.881967] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.882051] 8021q: 802.1Q VLAN Support v1.8
[    2.882575] Key type dns_resolver registered
[    2.883421] Registering SWP/SWPB emulation handler
[    2.884631] registered taskstats version 1
[    2.884641] Loading compiled-in X.509 certificates
[    2.884824] zswap: loaded using pool lzo/zbud
[    2.888307] Btrfs loaded, crc32c=crc32c-generic
[    2.926858] Key type encrypted registered
[    2.945188] ehci-platform 1c1b000.usb: EHCI Host Controller
[    2.945258] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 3
[    2.945703] mmc1: new DDR MMC card at address 0001
[    2.948257] mmcblk1: mmc1:0001 8GTF4R 7.28 GiB
[    2.949956] mmcblk1boot0: mmc1:0001 8GTF4R partition 1 4.00 MiB
[    2.951691] mmcblk1boot1: mmc1:0001 8GTF4R partition 2 4.00 MiB
[    2.952815] ehci-platform 1c1b000.usb: irq 29, io mem 0x01c1b000
[    2.954275]  mmcblk1: p1
[    2.968019] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[    2.968445] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    2.968461] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.968472] usb usb3: Product: EHCI Host Controller
[    2.968484] usb usb3: Manufacturer: Linux 4.19.62-sunxi ehci_hcd
[    2.968495] usb usb3: SerialNumber: 1c1b000.usb
[    2.969405] hub 3-0:1.0: USB hub found
[    2.969478] hub 3-0:1.0: 1 port detected
[    2.971072] ehci-platform 1c1c000.usb: EHCI Host Controller
[    2.971119] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 4
[    2.971716] ehci-platform 1c1c000.usb: irq 31, io mem 0x01c1c000
[    2.984024] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    2.984408] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    2.984423] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.984435] usb usb4: Product: EHCI Host Controller
[    2.984446] usb usb4: Manufacturer: Linux 4.19.62-sunxi ehci_hcd
[    2.984457] usb usb4: SerialNumber: 1c1c000.usb
[    2.985335] hub 4-0:1.0: USB hub found
[    2.985410] hub 4-0:1.0: 1 port detected
[    2.986794] ehci-platform 1c1d000.usb: EHCI Host Controller
[    2.986835] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 5
[    2.987280] ehci-platform 1c1d000.usb: irq 33, io mem 0x01c1d000
[    3.000026] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00
[    3.000417] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    3.000433] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.000444] usb usb5: Product: EHCI Host Controller
[    3.000456] usb usb5: Manufacturer: Linux 4.19.62-sunxi ehci_hcd
[    3.000466] usb usb5: SerialNumber: 1c1d000.usb
[    3.001359] hub 5-0:1.0: USB hub found
[    3.001429] hub 5-0:1.0: 1 port detected
[    3.002758] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[    3.002800] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 6
[    3.003157] ohci-platform 1c1b400.usb: irq 30, io mem 0x01c1b400
[    3.064381] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 4.19
[    3.064397] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.064409] usb usb6: Product: Generic Platform OHCI controller
[    3.064420] usb usb6: Manufacturer: Linux 4.19.62-sunxi ohci_hcd
[    3.064431] usb usb6: SerialNumber: 1c1b400.usb
[    3.065269] hub 6-0:1.0: USB hub found
[    3.065339] hub 6-0:1.0: 1 port detected
[    3.066700] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    3.066742] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 7
[    3.067117] ohci-platform 1c1c400.usb: irq 32, io mem 0x01c1c400
[    3.128323] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 4.19
[    3.128338] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.128350] usb usb7: Product: Generic Platform OHCI controller
[    3.128362] usb usb7: Manufacturer: Linux 4.19.62-sunxi ohci_hcd
[    3.128373] usb usb7: SerialNumber: 1c1c400.usb
[    3.129283] hub 7-0:1.0: USB hub found
[    3.129354] hub 7-0:1.0: 1 port detected
[    3.130691] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
[    3.130745] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 8
[    3.131148] ohci-platform 1c1d400.usb: irq 34, io mem 0x01c1d400
[    3.192334] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 4.19
[    3.192349] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.192361] usb usb8: Product: Generic Platform OHCI controller
[    3.192372] usb usb8: Manufacturer: Linux 4.19.62-sunxi ohci_hcd
[    3.192383] usb usb8: SerialNumber: 1c1d400.usb
[    3.193259] hub 8-0:1.0: USB hub found
[    3.193330] hub 8-0:1.0: 1 port detected
[    3.194754] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    3.194891] usb_phy_generic usb_phy_generic.0.auto: Linked as a consumer to regulator.0
[    3.196426] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01 00:01:02 UTC (62)
[    3.196797] of_cfs_init
[    3.196957] of_cfs_init: OK
[    3.197223] vcc3v0: disabling
[    3.197234] vcc5v0: disabling
[    3.204763] Freeing unused kernel memory: 1024K
[    3.216394] Run /init as init process
[    3.336073] usb 5-1: new high-speed USB device number 2 using ehci-platform
[    3.510388] usb 5-1: New USB device found, idVendor=152d, idProduct=0578, bcdDevice= 2.27
[    3.510412] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.510424] usb 5-1: Product: External Disk 3.0
[    3.510436] usb 5-1: Manufacturer: JMicron
[    3.510448] usb 5-1: SerialNumber: 000000005915
[    3.605890] scsi host0: uas
[    3.608318] scsi 0:0:0:0: Direct-Access     JMicron  Tech             0227 PQ: 0 ANSI: 6
[    3.610916] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    3.611131] sd 0:0:0:0: [sda] Unit Not Ready
[    3.611153] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[    3.611170] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[    3.612091] sd 0:0:0:0: [sda] Read Capacity(16) failed: Result: hostbyte=0x00 driverbyte=0x08
[    3.612098] usbcore: registered new interface driver uas
[    3.612117] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[    3.612134] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[    3.612881] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x00 driverbyte=0x08
[    3.612898] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[    3.612914] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[    3.614016] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
[    3.614032] sd 0:0:0:0: [sda] 0-byte physical blocks
[    3.614751] sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
[    3.614995] sd 0:0:0:0: [sda] Asking for cache data failed
[    3.615010] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    3.615758] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (0 bytes)
[    3.617879] sd 0:0:0:0: [sda] Unit Not Ready
[    3.617904] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[    3.617922] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[    3.618747] sd 0:0:0:0: [sda] Read Capacity(16) failed: Result: hostbyte=0x00 driverbyte=0x08
[    3.618766] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[    3.618783] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[    3.619496] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x00 driverbyte=0x08
[    3.619512] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[    3.619529] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[    3.622369] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.446871] random: fast init done
[    5.338962] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
[    5.773070] systemd[1]: System time before build time, advancing clock.
[    5.814507] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    5.815858] systemd[1]: Detected architecture arm.
[    5.848873] systemd[1]: Set hostname to <5>.
[    5.851613] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
[    6.821368] random: systemd: uninitialized urandom read (16 bytes read)
[    6.842908] random: systemd: uninitialized urandom read (16 bytes read)
[    6.843861] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    6.864317] random: systemd: uninitialized urandom read (16 bytes read)
[    6.865376] systemd[1]: Listening on udev Control Socket.
[    6.876326] systemd[1]: Reached target Remote File Systems.
[    6.890474] systemd[1]: Listening on Syslog Socket.
[    6.904817] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    6.917033] systemd[1]: Listening on Journal Socket (/dev/log).
[    7.291833] EXT4-fs (mmcblk1p1): re-mounted. Opts: commit=600,errors=remount-ro
[    7.601782] g_serial gadget: Gadget Serial v2.4
[    7.601807] g_serial gadget: g_serial ready
[    8.330710] systemd-journald[221]: Received request to flush runtime journal from PID 1
[    8.750996] input: r_gpio_keys as /devices/platform/r_gpio_keys/input/input0
[    8.973636] sun8i_ths 1c25000.thermal-sensor: no memory resources defined
[    8.973668] sun8i_ths: probe of 1c25000.thermal-sensor failed with error -22
[    9.010983] thermal thermal_zone0: failed to read out thermal zone (-110)
[    9.024363] sun4i-codec 1c22c00.codec: ASoC: codec-analog@1f015c0 not registered
[    9.024384] sun4i-codec 1c22c00.codec: Failed to register our card
[    9.024526] lima 1c40000.gpu: bus rate = 200000000
[    9.024539] lima 1c40000.gpu: mod rate = 384000000
[    9.030271] sun4i-codec 1c22c00.codec: ASoC: Failed to create component debugfs directory
[    9.032583] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    9.032803] [TTM] Zone  kernel: Available graphics memory: 252004 kiB
[    9.032811] [TTM] Initializing pool allocator
[    9.033834] lima 1c40000.gpu: gp - mali400 version major 1 minor 1
[    9.033918] lima 1c40000.gpu: pp0 - mali400 version major 1 minor 1
[    9.033963] lima 1c40000.gpu: pp1 - mali400 version major 1 minor 1
[    9.033998] lima 1c40000.gpu: l2 cache 64K, 4-way, 64byte cache line, 64bit external bus
[    9.055156] [drm] Initialized lima 1.0.0 20170325 for 1c40000.gpu on minor 0
[    9.235353] zram: Added device: zram0
[    9.236414] zram: Added device: zram1
[    9.237401] zram: Added device: zram2
[    9.344783] zram1: detected capacity change from 0 to 258052096
[   10.397708] Adding 252000k swap on /dev/zram1.  Priority:5 extents:1 across:252000k SSFS
[   10.526161] zram0: detected capacity change from 0 to 52428800
[   12.710145] Generic PHY 0.1:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0.1:01, irq=POLL)
[   12.722164] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[   12.722190] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[   12.722203] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[   12.722907] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   12.842125] EXT4-fs (zram0): mounted filesystem without journal. Opts: discard
[   13.964948] random: crng init done
[   13.964964] random: 7 urandom warning(s) missed due to ratelimiting
[   15.804576] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   15.804646] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  259.987804] usb 3-1: new high-speed USB device number 2 using ehci-platform
[  260.144914] usb 3-1: New USB device found, idVendor=1908, idProduct=0225, bcdDevice= 1.09
[  260.144935] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  260.144947] usb 3-1: Product: USB2.0 Device
[  260.144959] usb 3-1: Manufacturer: Generic
[  260.144970] usb 3-1: SerialNumber: 20120218120009
[  260.146227] usb-storage 3-1:1.0: USB Mass Storage device detected
[  260.152607] scsi host1: usb-storage 3-1:1.0
[  261.185350] scsi 1:0:0:0: Direct-Access     Generic  Mass-Storage     1.09 PQ: 0 ANSI: 2
[  261.187742] sd 1:0:0:0: Attached scsi generic sg1 type 0
[  261.809908] sd 1:0:0:0: [sdb] 62963712 512-byte logical blocks: (32.2 GB/30.0 GiB)
[  261.810999] sd 1:0:0:0: [sdb] Write Protect is off
[  261.811006] sd 1:0:0:0: [sdb] Mode Sense: 03 00 00 00
[  261.812046] sd 1:0:0:0: [sdb] No Caching mode page found
[  261.812053] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[  261.820794]  sdb:
[  261.824568] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[  309.389223] usb 3-1: USB disconnect, device number 2
[ 1669.191455] usb 3-1: new high-speed USB device number 3 using ehci-platform
[ 1669.348479] usb 3-1: New USB device found, idVendor=1908, idProduct=0225, bcdDevice= 1.09
[ 1669.348499] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1669.348511] usb 3-1: Product: USB2.0 Device
[ 1669.348523] usb 3-1: Manufacturer: Generic
[ 1669.348534] usb 3-1: SerialNumber: 20120218120009
[ 1669.349782] usb-storage 3-1:1.0: USB Mass Storage device detected
[ 1669.350462] scsi host1: usb-storage 3-1:1.0
[ 1670.357042] scsi 1:0:0:0: Direct-Access     Generic  Mass-Storage     1.09 PQ: 0 ANSI: 2
[ 1670.359536] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 1671.009350] sd 1:0:0:0: [sdb] 62963712 512-byte logical blocks: (32.2 GB/30.0 GiB)
[ 1671.010444] sd 1:0:0:0: [sdb] Write Protect is off
[ 1671.010452] sd 1:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 1671.011480] sd 1:0:0:0: [sdb] No Caching mode page found
[ 1671.011488] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[ 1671.017168]  sdb: sdb1
[ 1671.021225] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[ 1683.812329] sd 0:0:0:0: [sda] Unit Not Ready
[ 1683.812347] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[ 1683.812354] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[ 1683.812947] sd 0:0:0:0: [sda] Read Capacity(16) failed: Result: hostbyte=0x00 driverbyte=0x08
[ 1683.812956] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[ 1683.812963] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[ 1683.813440] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x00 driverbyte=0x08
[ 1683.813447] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[ 1683.813453] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[ 1746.210865] usb 3-1: USB disconnect, device number 3
[ 1866.273839] sd 0:0:0:0: [sda] Unit Not Ready
[ 1866.273856] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[ 1866.273864] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[ 1866.275082] sd 0:0:0:0: [sda] Read Capacity(16) failed: Result: hostbyte=0x00 driverbyte=0x08
[ 1866.275097] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[ 1866.275104] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[ 1866.275850] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x00 driverbyte=0x08
[ 1866.275861] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[ 1866.275868] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[ 1891.946570] sd 0:0:0:0: [sda] Unit Not Ready
[ 1891.946588] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[ 1891.946596] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[ 1891.947258] sd 0:0:0:0: [sda] Read Capacity(16) failed: Result: hostbyte=0x00 driverbyte=0x08
[ 1891.947268] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[ 1891.947275] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[ 1891.947955] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x00 driverbyte=0x08
[ 1891.947963] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[ 1891.947969] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
 

 

 

 

Share this post


Link to post
Share on other sites
3 minutes ago, Ali-leb said:

dd if=/dev/mmcblk1 of=/dev/sda bs=100M
dd: error writing '/dev/sda': No space left on device

Your SDCard needs to be bigger than your eMMC !

 

Share this post


Link to post
Share on other sites

It is bigger but i wrote once mmcblk1p1 and now i am not able to write on it again ... every time i try i keeps saying no enough space

Share this post


Link to post
Share on other sites
1 hour ago, Ali-leb said:

 

this might be something related to the sd card i think after i did this 
dd if=/dev/mmcblk1p1 of=/dev/sda bs=100M

My sd card is 32GB but what happened is i did this and now i could not copy again to sda ... should i clean it ? And how to clean it ? Format it or what ... is this just related to the sd card ?

Share this post


Link to post
Share on other sites
41 minutes ago, Alyn said:

It is bigger but i wrote once mmcblk1p1 and now i am not able to write on it again ... every time i try i keeps saying no enough space

 

14 minutes ago, Ali-leb said:

My sd card is 32GB but what happened is i did this and now i could not copy again to sda ... should i clean it ? And how to clean it ? Format it or what ... is this just related to the sd card ?

 

Writing directly to /dev/mmcblk1 (not mmcblk1p1) should erase partition table with a new one coming from eMMC.

So, for your both cases, if SDCards is bigger than eMMC and still not able to write into it, this means those SDCards are crappy, maybe even fake ones, says for example they are 32GB but actually fails after only first few GBs ...

You will then need to purchase good ones, well known brands, from trusted sellers !

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1