* dd to nand flash chip? @ 2017-08-17 10:37 Riko Ho 2017-08-17 14:16 ` Leonardo Sandoval 0 siblings, 1 reply; 12+ messages in thread From: Riko Ho @ 2017-08-17 10:37 UTC (permalink / raw) To: Martin Jansa; +Cc: yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 299 bytes --] Dear Yocto Team Members, I tried to dd *.wic to nand flash but always got kernel panic, it can not find rootfs when I dd the same file to sd card, it worked. I copy only *.wic file to usb drive n dd it. Do I need the whole directory of images for dd? or I need hddimg? Regards, Riko [-- Attachment #2: Type: text/html, Size: 333 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: dd to nand flash chip? 2017-08-17 10:37 dd to nand flash chip? Riko Ho @ 2017-08-17 14:16 ` Leonardo Sandoval 2017-08-17 23:37 ` Riko Ho 2017-08-18 3:40 ` Riko 0 siblings, 2 replies; 12+ messages in thread From: Leonardo Sandoval @ 2017-08-17 14:16 UTC (permalink / raw) To: Riko Ho; +Cc: yocto@yoctoproject.org On Thu, 2017-08-17 at 18:37 +0800, Riko Ho wrote: > Dear Yocto Team Members, > > I tried to dd *.wic to nand flash but always got kernel panic, it can > not find rootfs > when I dd the same file to sd card, it worked. > from the bootloader command prompt, you may need to change the root kernel parameter and point to the device where the filesystem resides. > I copy only *.wic file to usb drive n dd it. > Do I need the whole directory of images for dd? or I need hddimg? > > Regards, > Riko > ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: dd to nand flash chip? 2017-08-17 14:16 ` Leonardo Sandoval @ 2017-08-17 23:37 ` Riko Ho 2017-08-18 3:40 ` Riko 1 sibling, 0 replies; 12+ messages in thread From: Riko Ho @ 2017-08-17 23:37 UTC (permalink / raw) To: Leonardo Sandoval; +Cc: yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 709 bytes --] How can I edit boot loader command prompt ? On Aug 17, 2017 10:07 PM, "Leonardo Sandoval" < leonardo.sandoval.gonzalez@linux.intel.com> wrote: > On Thu, 2017-08-17 at 18:37 +0800, Riko Ho wrote: > > Dear Yocto Team Members, > > > > I tried to dd *.wic to nand flash but always got kernel panic, it can > > not find rootfs > > when I dd the same file to sd card, it worked. > > > > from the bootloader command prompt, you may need to change the root > kernel parameter and point to the device where the filesystem resides. > > > > I copy only *.wic file to usb drive n dd it. > > Do I need the whole directory of images for dd? or I need hddimg? > > > > Regards, > > Riko > > > > > [-- Attachment #2: Type: text/html, Size: 1040 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: dd to nand flash chip? 2017-08-17 14:16 ` Leonardo Sandoval 2017-08-17 23:37 ` Riko Ho @ 2017-08-18 3:40 ` Riko 2017-08-18 8:58 ` Ed Bartosh 1 sibling, 1 reply; 12+ messages in thread From: Riko @ 2017-08-18 3:40 UTC (permalink / raw) To: Leonardo Sandoval; +Cc: yocto@yoctoproject.org Here's the boot messages : === VFS: PARTUUID= is invalid. Expected PARTUUID=<valid-uuid-id>[/PARTNROFF=%d] Disabling rootwait; root= is invalid. VFS: Cannot open root device "PARTUUID=" or unknown-block(0,0): error -6 Please append a correct "root=" boot option; here are the available partitions: 0100 4096 ram0 (driver?) 0101 4096 ram1 (driver?) 0102 4096 ram2 (driver?) 0103 4096 ram3 (driver?) 0104 4096 ram4 (driver?) 0105 4096 ram5 (driver?) 0106 4096 ram6 (driver?) 0107 4096 ram7 (driver?) 0108 4096 ram8 (driver?) 0109 4096 ram9 (driver?) 010a 4096 ram10 (driver?) 010b 4096 ram11 (driver?) 010c 4096 ram12 (driver?) 010d 4096 ram13 (driver?) 010e 4096 ram14 (driver?) 010f 4096 ram15 (driver?) b300 3735552 mmcblk1 driver: mmcblk b301 16384 mmcblk1p1 2848be0f-01 b302 756704 mmcblk1p2 2848be0f-02 b310 4096 mmcblk1boot1 (driver?) b308 4096 mmcblk1boot0 (driver?) VFS: Unable to mount root fs on unknown-block(0,0) User configuration error - no valid root filesystem found Kernel panic - not syncing: Invalid configuration from end user prevents conting CPU: 0 PID: 1 Comm: swapper Not tainted 4.8.12-yocto-standard #3 Hardware name: Generic AM33XX (Flattened Device Tree) [<c010f260>] (unwind_backtrace) from [<c010c11c>] (show_stack+0x20/0x24) [<c010c11c>] (show_stack) from [<c0493068>] (dump_stack+0x20/0x28) [<c0493068>] (dump_stack) from [<c01f20f4>] (panic+0xc0/0x22c) [<c01f20f4>] (panic) from [<c0f013ac>] (mount_block_root+0x19c/0x274) [<c0f013ac>] (mount_block_root) from [<c0f0163c>] (mount_root+0xd0/0x124) [<c0f0163c>] (mount_root) from [<c0f01810>] (prepare_namespace+0x180/0x1c0) [<c0f01810>] (prepare_namespace) from [<c0f00f3c>] (kernel_init_freeable+0x220/) [<c0f00f3c>] (kernel_init_freeable) from [<c0964fb8>] (kernel_init+0x18/0x11c) [<c0964fb8>] (kernel_init) from [<c01078b8>] (ret_from_fork+0x14/0x3c) ---[ end Kernel panic - not syncing: Invalid configuration from end user preveng ===== How to fix it ? thanks On 17/08/17 22:16, Leonardo Sandoval wrote: > On Thu, 2017-08-17 at 18:37 +0800, Riko Ho wrote: >> Dear Yocto Team Members, >> >> I tried to dd *.wic to nand flash but always got kernel panic, it can >> not find rootfs >> when I dd the same file to sd card, it worked. >> > from the bootloader command prompt, you may need to change the root > kernel parameter and point to the device where the filesystem resides. > > >> I copy only *.wic file to usb drive n dd it. >> Do I need the whole directory of images for dd? or I need hddimg? >> >> Regards, >> Riko >> > -- /***** Sent By Ubuntu 16.04 LTS Kernel 4.4.0-92-generic Regards, Riko H *****/ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: dd to nand flash chip? 2017-08-18 3:40 ` Riko @ 2017-08-18 8:58 ` Ed Bartosh 2017-08-18 11:56 ` Riko Ho ` (3 more replies) 0 siblings, 4 replies; 12+ messages in thread From: Ed Bartosh @ 2017-08-18 8:58 UTC (permalink / raw) To: Riko; +Cc: yocto@yoctoproject.org On Fri, Aug 18, 2017 at 11:40:58AM +0800, Riko wrote: > Here's the boot messages : > > === > > VFS: PARTUUID= is invalid. > Expected PARTUUID=<valid-uuid-id>[/PARTNROFF=%d] > Disabling rootwait; root= is invalid. > VFS: Cannot open root device "PARTUUID=" or unknown-block(0,0): error -6 Looks like you have empty PARTUUID in the kernel command line. Which wks file do you use for this image? Which layers? Can you show your bootloader config? > Please append a correct "root=" boot option; here are the available > partitions: > 0100 4096 ram0 (driver?) > 0101 4096 ram1 (driver?) > 0102 4096 ram2 (driver?) > 0103 4096 ram3 (driver?) > 0104 4096 ram4 (driver?) > 0105 4096 ram5 (driver?) > 0106 4096 ram6 (driver?) > 0107 4096 ram7 (driver?) > 0108 4096 ram8 (driver?) > 0109 4096 ram9 (driver?) > 010a 4096 ram10 (driver?) > 010b 4096 ram11 (driver?) > 010c 4096 ram12 (driver?) > 010d 4096 ram13 (driver?) > 010e 4096 ram14 (driver?) > 010f 4096 ram15 (driver?) > b300 3735552 mmcblk1 driver: mmcblk > b301 16384 mmcblk1p1 2848be0f-01 > b302 756704 mmcblk1p2 2848be0f-02 > b310 4096 mmcblk1boot1 (driver?) > b308 4096 mmcblk1boot0 (driver?) > VFS: Unable to mount root fs on unknown-block(0,0) > User configuration error - no valid root filesystem found > Kernel panic - not syncing: Invalid configuration from end user > prevents conting > CPU: 0 PID: 1 Comm: swapper Not tainted 4.8.12-yocto-standard #3 > Hardware name: Generic AM33XX (Flattened Device Tree) > [<c010f260>] (unwind_backtrace) from [<c010c11c>] (show_stack+0x20/0x24) > [<c010c11c>] (show_stack) from [<c0493068>] (dump_stack+0x20/0x28) > [<c0493068>] (dump_stack) from [<c01f20f4>] (panic+0xc0/0x22c) > [<c01f20f4>] (panic) from [<c0f013ac>] (mount_block_root+0x19c/0x274) > [<c0f013ac>] (mount_block_root) from [<c0f0163c>] (mount_root+0xd0/0x124) > [<c0f0163c>] (mount_root) from [<c0f01810>] (prepare_namespace+0x180/0x1c0) > [<c0f01810>] (prepare_namespace) from [<c0f00f3c>] > (kernel_init_freeable+0x220/) > [<c0f00f3c>] (kernel_init_freeable) from [<c0964fb8>] > (kernel_init+0x18/0x11c) > [<c0964fb8>] (kernel_init) from [<c01078b8>] (ret_from_fork+0x14/0x3c) > ---[ end Kernel panic - not syncing: Invalid configuration from end > user preveng > > ===== > > How to fix it ? thanks > > > On 17/08/17 22:16, Leonardo Sandoval wrote: > >On Thu, 2017-08-17 at 18:37 +0800, Riko Ho wrote: > >>Dear Yocto Team Members, > >> > >>I tried to dd *.wic to nand flash but always got kernel panic, it can > >>not find rootfs > >>when I dd the same file to sd card, it worked. > >> > >from the bootloader command prompt, you may need to change the root > >kernel parameter and point to the device where the filesystem resides. > > > > > >>I copy only *.wic file to usb drive n dd it. > >>Do I need the whole directory of images for dd? or I need hddimg? > >> > >>Regards, > >>Riko > >> > > > > -- > /***** > Sent By > Ubuntu 16.04 LTS > Kernel 4.4.0-92-generic > Regards, > Riko H > *****/ > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- -- Regards, Ed ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: dd to nand flash chip? 2017-08-18 8:58 ` Ed Bartosh @ 2017-08-18 11:56 ` Riko Ho 2017-08-21 8:08 ` Ed Bartosh 2017-08-19 2:08 ` Riko ` (2 subsequent siblings) 3 siblings, 1 reply; 12+ messages in thread From: Riko Ho @ 2017-08-18 11:56 UTC (permalink / raw) To: ed.bartosh; +Cc: yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 3916 bytes --] I'm confused, what is wks ? what layers do you want to know? I was bitbaking core image minimal xfce. How can I see my bootloader config? Thanks and regards, Riko On Aug 18, 2017 5:22 PM, "Ed Bartosh" <ed.bartosh@linux.intel.com> wrote: > On Fri, Aug 18, 2017 at 11:40:58AM +0800, Riko wrote: > > Here's the boot messages : > > > > === > > > > VFS: PARTUUID= is invalid. > > Expected PARTUUID=<valid-uuid-id>[/PARTNROFF=%d] > > Disabling rootwait; root= is invalid. > > VFS: Cannot open root device "PARTUUID=" or unknown-block(0,0): error -6 > > Looks like you have empty PARTUUID in the kernel command line. Which wks > file do you use for this image? Which layers? Can you show your > bootloader config? > > > Please append a correct "root=" boot option; here are the available > > partitions: > > 0100 4096 ram0 (driver?) > > 0101 4096 ram1 (driver?) > > 0102 4096 ram2 (driver?) > > 0103 4096 ram3 (driver?) > > 0104 4096 ram4 (driver?) > > 0105 4096 ram5 (driver?) > > 0106 4096 ram6 (driver?) > > 0107 4096 ram7 (driver?) > > 0108 4096 ram8 (driver?) > > 0109 4096 ram9 (driver?) > > 010a 4096 ram10 (driver?) > > 010b 4096 ram11 (driver?) > > 010c 4096 ram12 (driver?) > > 010d 4096 ram13 (driver?) > > 010e 4096 ram14 (driver?) > > 010f 4096 ram15 (driver?) > > b300 3735552 mmcblk1 driver: mmcblk > > b301 16384 mmcblk1p1 2848be0f-01 > > b302 756704 mmcblk1p2 2848be0f-02 > > b310 4096 mmcblk1boot1 (driver?) > > b308 4096 mmcblk1boot0 (driver?) > > VFS: Unable to mount root fs on unknown-block(0,0) > > User configuration error - no valid root filesystem found > > Kernel panic - not syncing: Invalid configuration from end user > > prevents conting > > CPU: 0 PID: 1 Comm: swapper Not tainted 4.8.12-yocto-standard #3 > > Hardware name: Generic AM33XX (Flattened Device Tree) > > [<c010f260>] (unwind_backtrace) from [<c010c11c>] (show_stack+0x20/0x24) > > [<c010c11c>] (show_stack) from [<c0493068>] (dump_stack+0x20/0x28) > > [<c0493068>] (dump_stack) from [<c01f20f4>] (panic+0xc0/0x22c) > > [<c01f20f4>] (panic) from [<c0f013ac>] (mount_block_root+0x19c/0x274) > > [<c0f013ac>] (mount_block_root) from [<c0f0163c>] (mount_root+0xd0/0x124) > > [<c0f0163c>] (mount_root) from [<c0f01810>] (prepare_namespace+0x180/ > 0x1c0) > > [<c0f01810>] (prepare_namespace) from [<c0f00f3c>] > > (kernel_init_freeable+0x220/) > > [<c0f00f3c>] (kernel_init_freeable) from [<c0964fb8>] > > (kernel_init+0x18/0x11c) > > [<c0964fb8>] (kernel_init) from [<c01078b8>] (ret_from_fork+0x14/0x3c) > > ---[ end Kernel panic - not syncing: Invalid configuration from end > > user preveng > > > > ===== > > > > How to fix it ? thanks > > > > > > On 17/08/17 22:16, Leonardo Sandoval wrote: > > >On Thu, 2017-08-17 at 18:37 +0800, Riko Ho wrote: > > >>Dear Yocto Team Members, > > >> > > >>I tried to dd *.wic to nand flash but always got kernel panic, it can > > >>not find rootfs > > >>when I dd the same file to sd card, it worked. > > >> > > >from the bootloader command prompt, you may need to change the root > > >kernel parameter and point to the device where the filesystem resides. > > > > > > > > >>I copy only *.wic file to usb drive n dd it. > > >>Do I need the whole directory of images for dd? or I need hddimg? > > >> > > >>Regards, > > >>Riko > > >> > > > > > > > -- > > /***** > > Sent By > > Ubuntu 16.04 LTS > > Kernel 4.4.0-92-generic > > Regards, > > Riko H > > *****/ > > > > -- > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto > > -- > -- > Regards, > Ed > [-- Attachment #2: Type: text/html, Size: 5158 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: dd to nand flash chip? 2017-08-18 11:56 ` Riko Ho @ 2017-08-21 8:08 ` Ed Bartosh 0 siblings, 0 replies; 12+ messages in thread From: Ed Bartosh @ 2017-08-21 8:08 UTC (permalink / raw) To: Riko Ho; +Cc: yocto@yoctoproject.org Hi Riko, Sorry for this confusion. You can see used wks file On Fri, Aug 18, 2017 at 07:56:46PM +0800, Riko Ho wrote: > I'm confused, what is wks ? what layers do you want to know? Sorry for the confusion. You can read about wic and wks in the documentation: To understand which wks file was used to build your .wic image you can run this command: bitbake -e <your image> | grep ^WKS_FILE= > what layers do you want to know? all of them :) Please, show me the output of 'cat conf/bblayers.conf' > I was bitbaking core image minimal xfce. looks like you're using meta-xfce layer. > How can I see my bootloader config? You can mount your boot partition and see it there. Something like this: # kpartx -va ./tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic add map loop2p1 (254:3): 0 46896 linear /dev/loop2 2048 add map loop2p2 (254:4): 0 49568 linear /dev/loop2 49152 # mount /dev/mapper/loop2p1 /mnt/ # cat /mnt/syslinux.cfg PROMPT 0 TIMEOUT 0 ALLOWOPTIONS 1 SERIAL 0 115200 DEFAULT boot LABEL boot KERNEL /vmlinuz APPEND label=boot root=/dev/mmcblk1p2 rootwait rootfstype=ext4 video=vesafb vga=0x318 console=tty0 console=ttyS0,115200n8 Note, that your image may have different bootloader. > Thanks and regards, > Riko > On Aug 18, 2017 5:22 PM, "Ed Bartosh" <ed.bartosh@linux.intel.com> wrote: > > > On Fri, Aug 18, 2017 at 11:40:58AM +0800, Riko wrote: > > > Here's the boot messages : > > > > > > === > > > > > > VFS: PARTUUID= is invalid. > > > Expected PARTUUID=<valid-uuid-id>[/PARTNROFF=%d] > > > Disabling rootwait; root= is invalid. > > > VFS: Cannot open root device "PARTUUID=" or unknown-block(0,0): error -6 > > > > Looks like you have empty PARTUUID in the kernel command line. Which wks > > file do you use for this image? Which layers? Can you show your > > bootloader config? > > > > > Please append a correct "root=" boot option; here are the available > > > partitions: > > > 0100 4096 ram0 (driver?) > > > 0101 4096 ram1 (driver?) > > > 0102 4096 ram2 (driver?) > > > 0103 4096 ram3 (driver?) > > > 0104 4096 ram4 (driver?) > > > 0105 4096 ram5 (driver?) > > > 0106 4096 ram6 (driver?) > > > 0107 4096 ram7 (driver?) > > > 0108 4096 ram8 (driver?) > > > 0109 4096 ram9 (driver?) > > > 010a 4096 ram10 (driver?) > > > 010b 4096 ram11 (driver?) > > > 010c 4096 ram12 (driver?) > > > 010d 4096 ram13 (driver?) > > > 010e 4096 ram14 (driver?) > > > 010f 4096 ram15 (driver?) > > > b300 3735552 mmcblk1 driver: mmcblk > > > b301 16384 mmcblk1p1 2848be0f-01 > > > b302 756704 mmcblk1p2 2848be0f-02 > > > b310 4096 mmcblk1boot1 (driver?) > > > b308 4096 mmcblk1boot0 (driver?) > > > VFS: Unable to mount root fs on unknown-block(0,0) > > > User configuration error - no valid root filesystem found > > > Kernel panic - not syncing: Invalid configuration from end user > > > prevents conting > > > CPU: 0 PID: 1 Comm: swapper Not tainted 4.8.12-yocto-standard #3 > > > Hardware name: Generic AM33XX (Flattened Device Tree) > > > [<c010f260>] (unwind_backtrace) from [<c010c11c>] (show_stack+0x20/0x24) > > > [<c010c11c>] (show_stack) from [<c0493068>] (dump_stack+0x20/0x28) > > > [<c0493068>] (dump_stack) from [<c01f20f4>] (panic+0xc0/0x22c) > > > [<c01f20f4>] (panic) from [<c0f013ac>] (mount_block_root+0x19c/0x274) > > > [<c0f013ac>] (mount_block_root) from [<c0f0163c>] (mount_root+0xd0/0x124) > > > [<c0f0163c>] (mount_root) from [<c0f01810>] (prepare_namespace+0x180/ > > 0x1c0) > > > [<c0f01810>] (prepare_namespace) from [<c0f00f3c>] > > > (kernel_init_freeable+0x220/) > > > [<c0f00f3c>] (kernel_init_freeable) from [<c0964fb8>] > > > (kernel_init+0x18/0x11c) > > > [<c0964fb8>] (kernel_init) from [<c01078b8>] (ret_from_fork+0x14/0x3c) > > > ---[ end Kernel panic - not syncing: Invalid configuration from end > > > user preveng > > > > > > ===== > > > > > > How to fix it ? thanks > > > > > > > > > On 17/08/17 22:16, Leonardo Sandoval wrote: > > > >On Thu, 2017-08-17 at 18:37 +0800, Riko Ho wrote: > > > >>Dear Yocto Team Members, > > > >> > > > >>I tried to dd *.wic to nand flash but always got kernel panic, it can > > > >>not find rootfs > > > >>when I dd the same file to sd card, it worked. > > > >> > > > >from the bootloader command prompt, you may need to change the root > > > >kernel parameter and point to the device where the filesystem resides. > > > > > > > > > > > >>I copy only *.wic file to usb drive n dd it. > > > >>Do I need the whole directory of images for dd? or I need hddimg? > > > >> > > > >>Regards, > > > >>Riko > > > >> > > > > > > > > > > -- > > > /***** > > > Sent By > > > Ubuntu 16.04 LTS > > > Kernel 4.4.0-92-generic > > > Regards, > > > Riko H > > > *****/ > > > > > > -- > > > _______________________________________________ > > > yocto mailing list > > > yocto@yoctoproject.org > > > https://lists.yoctoproject.org/listinfo/yocto > > > > -- > > -- > > Regards, > > Ed > > -- -- Regards, Ed ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: dd to nand flash chip? 2017-08-18 8:58 ` Ed Bartosh 2017-08-18 11:56 ` Riko Ho @ 2017-08-19 2:08 ` Riko 2017-08-21 8:09 ` Ed Bartosh 2017-08-19 2:17 ` Riko 2017-08-19 2:31 ` Riko 3 siblings, 1 reply; 12+ messages in thread From: Riko @ 2017-08-19 2:08 UTC (permalink / raw) To: ed.bartosh; +Cc: yocto@yoctoproject.org Is it related with : https://stackoverflow.com/questions/43211384/how-to-get-to-menuconfig-for-u-boot-in-yocto-environment ? Thanks On 18/08/17 16:58, Ed Bartosh wrote: > On Fri, Aug 18, 2017 at 11:40:58AM +0800, Riko wrote: >> Here's the boot messages : >> >> === >> >> VFS: PARTUUID= is invalid. >> Expected PARTUUID=<valid-uuid-id>[/PARTNROFF=%d] >> Disabling rootwait; root= is invalid. >> VFS: Cannot open root device "PARTUUID=" or unknown-block(0,0): error -6 > Looks like you have empty PARTUUID in the kernel command line. Which wks > file do you use for this image? Which layers? Can you show your > bootloader config? > >> Please append a correct "root=" boot option; here are the available >> partitions: >> 0100 4096 ram0 (driver?) >> 0101 4096 ram1 (driver?) >> 0102 4096 ram2 (driver?) >> 0103 4096 ram3 (driver?) >> 0104 4096 ram4 (driver?) >> 0105 4096 ram5 (driver?) >> 0106 4096 ram6 (driver?) >> 0107 4096 ram7 (driver?) >> 0108 4096 ram8 (driver?) >> 0109 4096 ram9 (driver?) >> 010a 4096 ram10 (driver?) >> 010b 4096 ram11 (driver?) >> 010c 4096 ram12 (driver?) >> 010d 4096 ram13 (driver?) >> 010e 4096 ram14 (driver?) >> 010f 4096 ram15 (driver?) >> b300 3735552 mmcblk1 driver: mmcblk >> b301 16384 mmcblk1p1 2848be0f-01 >> b302 756704 mmcblk1p2 2848be0f-02 >> b310 4096 mmcblk1boot1 (driver?) >> b308 4096 mmcblk1boot0 (driver?) >> VFS: Unable to mount root fs on unknown-block(0,0) >> User configuration error - no valid root filesystem found >> Kernel panic - not syncing: Invalid configuration from end user >> prevents conting >> CPU: 0 PID: 1 Comm: swapper Not tainted 4.8.12-yocto-standard #3 >> Hardware name: Generic AM33XX (Flattened Device Tree) >> [<c010f260>] (unwind_backtrace) from [<c010c11c>] (show_stack+0x20/0x24) >> [<c010c11c>] (show_stack) from [<c0493068>] (dump_stack+0x20/0x28) >> [<c0493068>] (dump_stack) from [<c01f20f4>] (panic+0xc0/0x22c) >> [<c01f20f4>] (panic) from [<c0f013ac>] (mount_block_root+0x19c/0x274) >> [<c0f013ac>] (mount_block_root) from [<c0f0163c>] (mount_root+0xd0/0x124) >> [<c0f0163c>] (mount_root) from [<c0f01810>] (prepare_namespace+0x180/0x1c0) >> [<c0f01810>] (prepare_namespace) from [<c0f00f3c>] >> (kernel_init_freeable+0x220/) >> [<c0f00f3c>] (kernel_init_freeable) from [<c0964fb8>] >> (kernel_init+0x18/0x11c) >> [<c0964fb8>] (kernel_init) from [<c01078b8>] (ret_from_fork+0x14/0x3c) >> ---[ end Kernel panic - not syncing: Invalid configuration from end >> user preveng >> >> ===== >> >> How to fix it ? thanks >> >> >> On 17/08/17 22:16, Leonardo Sandoval wrote: >>> On Thu, 2017-08-17 at 18:37 +0800, Riko Ho wrote: >>>> Dear Yocto Team Members, >>>> >>>> I tried to dd *.wic to nand flash but always got kernel panic, it can >>>> not find rootfs >>>> when I dd the same file to sd card, it worked. >>>> >> >from the bootloader command prompt, you may need to change the root >>> kernel parameter and point to the device where the filesystem resides. >>> >>> >>>> I copy only *.wic file to usb drive n dd it. >>>> Do I need the whole directory of images for dd? or I need hddimg? >>>> >>>> Regards, >>>> Riko >>>> >> -- >> /***** >> Sent By >> Ubuntu 16.04 LTS >> Kernel 4.4.0-92-generic >> Regards, >> Riko H >> *****/ >> >> -- >> _______________________________________________ >> yocto mailing list >> yocto@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/yocto -- /***** Sent By Ubuntu 16.04 LTS Kernel 4.4.0-92-generic Regards, Riko H *****/ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: dd to nand flash chip? 2017-08-19 2:08 ` Riko @ 2017-08-21 8:09 ` Ed Bartosh 0 siblings, 0 replies; 12+ messages in thread From: Ed Bartosh @ 2017-08-21 8:09 UTC (permalink / raw) To: Riko; +Cc: yocto@yoctoproject.org On Sat, Aug 19, 2017 at 10:08:06AM +0800, Riko wrote: > Is it related with : > > https://stackoverflow.com/questions/43211384/how-to-get-to-menuconfig-for-u-boot-in-yocto-environment > I don't think so. It's about kernel build configuration. > ? > > Thanks > > > On 18/08/17 16:58, Ed Bartosh wrote: > >On Fri, Aug 18, 2017 at 11:40:58AM +0800, Riko wrote: > >>Here's the boot messages : > >> > >>=== > >> > >>VFS: PARTUUID= is invalid. > >>Expected PARTUUID=<valid-uuid-id>[/PARTNROFF=%d] > >>Disabling rootwait; root= is invalid. > >>VFS: Cannot open root device "PARTUUID=" or unknown-block(0,0): error -6 > >Looks like you have empty PARTUUID in the kernel command line. Which wks > >file do you use for this image? Which layers? Can you show your > >bootloader config? > > > >>Please append a correct "root=" boot option; here are the available > >>partitions: > >>0100 4096 ram0 (driver?) > >>0101 4096 ram1 (driver?) > >>0102 4096 ram2 (driver?) > >>0103 4096 ram3 (driver?) > >>0104 4096 ram4 (driver?) > >>0105 4096 ram5 (driver?) > >>0106 4096 ram6 (driver?) > >>0107 4096 ram7 (driver?) > >>0108 4096 ram8 (driver?) > >>0109 4096 ram9 (driver?) > >>010a 4096 ram10 (driver?) > >>010b 4096 ram11 (driver?) > >>010c 4096 ram12 (driver?) > >>010d 4096 ram13 (driver?) > >>010e 4096 ram14 (driver?) > >>010f 4096 ram15 (driver?) > >>b300 3735552 mmcblk1 driver: mmcblk > >> b301 16384 mmcblk1p1 2848be0f-01 > >> b302 756704 mmcblk1p2 2848be0f-02 > >>b310 4096 mmcblk1boot1 (driver?) > >>b308 4096 mmcblk1boot0 (driver?) > >>VFS: Unable to mount root fs on unknown-block(0,0) > >>User configuration error - no valid root filesystem found > >>Kernel panic - not syncing: Invalid configuration from end user > >>prevents conting > >>CPU: 0 PID: 1 Comm: swapper Not tainted 4.8.12-yocto-standard #3 > >>Hardware name: Generic AM33XX (Flattened Device Tree) > >>[<c010f260>] (unwind_backtrace) from [<c010c11c>] (show_stack+0x20/0x24) > >>[<c010c11c>] (show_stack) from [<c0493068>] (dump_stack+0x20/0x28) > >>[<c0493068>] (dump_stack) from [<c01f20f4>] (panic+0xc0/0x22c) > >>[<c01f20f4>] (panic) from [<c0f013ac>] (mount_block_root+0x19c/0x274) > >>[<c0f013ac>] (mount_block_root) from [<c0f0163c>] (mount_root+0xd0/0x124) > >>[<c0f0163c>] (mount_root) from [<c0f01810>] (prepare_namespace+0x180/0x1c0) > >>[<c0f01810>] (prepare_namespace) from [<c0f00f3c>] > >>(kernel_init_freeable+0x220/) > >>[<c0f00f3c>] (kernel_init_freeable) from [<c0964fb8>] > >>(kernel_init+0x18/0x11c) > >>[<c0964fb8>] (kernel_init) from [<c01078b8>] (ret_from_fork+0x14/0x3c) > >>---[ end Kernel panic - not syncing: Invalid configuration from end > >>user preveng > >> > >>===== > >> > >>How to fix it ? thanks > >> > >> > >>On 17/08/17 22:16, Leonardo Sandoval wrote: > >>>On Thu, 2017-08-17 at 18:37 +0800, Riko Ho wrote: > >>>>Dear Yocto Team Members, > >>>> > >>>>I tried to dd *.wic to nand flash but always got kernel panic, it can > >>>>not find rootfs > >>>>when I dd the same file to sd card, it worked. > >>>> > >>>from the bootloader command prompt, you may need to change the root > >>>kernel parameter and point to the device where the filesystem resides. > >>> > >>> > >>>>I copy only *.wic file to usb drive n dd it. > >>>>Do I need the whole directory of images for dd? or I need hddimg? > >>>> > >>>>Regards, > >>>>Riko > >>>> > >>-- > >>/***** > >>Sent By > >>Ubuntu 16.04 LTS > >>Kernel 4.4.0-92-generic > >>Regards, > >>Riko H > >>*****/ > >> > >>-- > >>_______________________________________________ > >>yocto mailing list > >>yocto@yoctoproject.org > >>https://lists.yoctoproject.org/listinfo/yocto > > -- > /***** > Sent By > Ubuntu 16.04 LTS > Kernel 4.4.0-92-generic > Regards, > Riko H > *****/ > -- -- Regards, Ed ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: dd to nand flash chip? 2017-08-18 8:58 ` Ed Bartosh 2017-08-18 11:56 ` Riko Ho 2017-08-19 2:08 ` Riko @ 2017-08-19 2:17 ` Riko 2017-08-19 2:31 ` Riko 3 siblings, 0 replies; 12+ messages in thread From: Riko @ 2017-08-19 2:17 UTC (permalink / raw) To: ed.bartosh; +Cc: yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 3743 bytes --] Is it related with linux-yocto kernel config ? Please see attachment, thanks On 18/08/17 16:58, Ed Bartosh wrote: > On Fri, Aug 18, 2017 at 11:40:58AM +0800, Riko wrote: >> Here's the boot messages : >> >> === >> >> VFS: PARTUUID= is invalid. >> Expected PARTUUID=<valid-uuid-id>[/PARTNROFF=%d] >> Disabling rootwait; root= is invalid. >> VFS: Cannot open root device "PARTUUID=" or unknown-block(0,0): error -6 > Looks like you have empty PARTUUID in the kernel command line. Which wks > file do you use for this image? Which layers? Can you show your > bootloader config? > >> Please append a correct "root=" boot option; here are the available >> partitions: >> 0100 4096 ram0 (driver?) >> 0101 4096 ram1 (driver?) >> 0102 4096 ram2 (driver?) >> 0103 4096 ram3 (driver?) >> 0104 4096 ram4 (driver?) >> 0105 4096 ram5 (driver?) >> 0106 4096 ram6 (driver?) >> 0107 4096 ram7 (driver?) >> 0108 4096 ram8 (driver?) >> 0109 4096 ram9 (driver?) >> 010a 4096 ram10 (driver?) >> 010b 4096 ram11 (driver?) >> 010c 4096 ram12 (driver?) >> 010d 4096 ram13 (driver?) >> 010e 4096 ram14 (driver?) >> 010f 4096 ram15 (driver?) >> b300 3735552 mmcblk1 driver: mmcblk >> b301 16384 mmcblk1p1 2848be0f-01 >> b302 756704 mmcblk1p2 2848be0f-02 >> b310 4096 mmcblk1boot1 (driver?) >> b308 4096 mmcblk1boot0 (driver?) >> VFS: Unable to mount root fs on unknown-block(0,0) >> User configuration error - no valid root filesystem found >> Kernel panic - not syncing: Invalid configuration from end user >> prevents conting >> CPU: 0 PID: 1 Comm: swapper Not tainted 4.8.12-yocto-standard #3 >> Hardware name: Generic AM33XX (Flattened Device Tree) >> [<c010f260>] (unwind_backtrace) from [<c010c11c>] (show_stack+0x20/0x24) >> [<c010c11c>] (show_stack) from [<c0493068>] (dump_stack+0x20/0x28) >> [<c0493068>] (dump_stack) from [<c01f20f4>] (panic+0xc0/0x22c) >> [<c01f20f4>] (panic) from [<c0f013ac>] (mount_block_root+0x19c/0x274) >> [<c0f013ac>] (mount_block_root) from [<c0f0163c>] (mount_root+0xd0/0x124) >> [<c0f0163c>] (mount_root) from [<c0f01810>] (prepare_namespace+0x180/0x1c0) >> [<c0f01810>] (prepare_namespace) from [<c0f00f3c>] >> (kernel_init_freeable+0x220/) >> [<c0f00f3c>] (kernel_init_freeable) from [<c0964fb8>] >> (kernel_init+0x18/0x11c) >> [<c0964fb8>] (kernel_init) from [<c01078b8>] (ret_from_fork+0x14/0x3c) >> ---[ end Kernel panic - not syncing: Invalid configuration from end >> user preveng >> >> ===== >> >> How to fix it ? thanks >> >> >> On 17/08/17 22:16, Leonardo Sandoval wrote: >>> On Thu, 2017-08-17 at 18:37 +0800, Riko Ho wrote: >>>> Dear Yocto Team Members, >>>> >>>> I tried to dd *.wic to nand flash but always got kernel panic, it can >>>> not find rootfs >>>> when I dd the same file to sd card, it worked. >>>> >> >from the bootloader command prompt, you may need to change the root >>> kernel parameter and point to the device where the filesystem resides. >>> >>> >>>> I copy only *.wic file to usb drive n dd it. >>>> Do I need the whole directory of images for dd? or I need hddimg? >>>> >>>> Regards, >>>> Riko >>>> >> -- >> /***** >> Sent By >> Ubuntu 16.04 LTS >> Kernel 4.4.0-92-generic >> Regards, >> Riko H >> *****/ >> >> -- >> _______________________________________________ >> yocto mailing list >> yocto@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/yocto -- /***** Sent By Ubuntu 16.04 LTS Kernel 4.4.0-92-generic Regards, Riko H *****/ [-- Attachment #2: kernel_boot_option.jpg --] [-- Type: image/jpeg, Size: 90773 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: dd to nand flash chip? 2017-08-18 8:58 ` Ed Bartosh ` (2 preceding siblings ...) 2017-08-19 2:17 ` Riko @ 2017-08-19 2:31 ` Riko 2017-08-21 8:32 ` Ed Bartosh 3 siblings, 1 reply; 12+ messages in thread From: Riko @ 2017-08-19 2:31 UTC (permalink / raw) To: ed.bartosh; +Cc: yocto@yoctoproject.org When I did fdisk -l here was what I got : ==== Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/mmcblk0: 14.6 GiB, 15640559616 bytes, 30547968 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x156b2128 Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 * 8 42605 42598 20.8M c W95 FAT32 (LBA) /dev/mmcblk0p2 42608 2171617 2129010 1G 83 Linux Disk /dev/mmcblk1: 3.6 GiB, 3825205248 bytes, 7471104 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x19fcf925 Device Boot Start End Sectors Size Id Type /dev/mmcblk1p1 * 8 32775 32768 16M c W95 FAT32 (LBA) /dev/mmcblk1p2 32776 1546183 1513408 739M 83 Linux Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/sda: 496 MiB, 520092160 bytes, 1015805 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00000000 ===== I boot from : Disk /dev/mmcblk0: 14.6 GiB, 15640559616 bytes, 30547968 sectors but I can't boot from : Disk /dev/mmcblk1 which is NAND flash chip. Is there a partition problem here ? thanks I saw something strange on NAND flash partition : Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes I tried to fdisk it but can not, any other option for deleting it ? Thanks On 18/08/17 16:58, Ed Bartosh wrote: > On Fri, Aug 18, 2017 at 11:40:58AM +0800, Riko wrote: >> Here's the boot messages : >> >> === >> >> VFS: PARTUUID= is invalid. >> Expected PARTUUID=<valid-uuid-id>[/PARTNROFF=%d] >> Disabling rootwait; root= is invalid. >> VFS: Cannot open root device "PARTUUID=" or unknown-block(0,0): error -6 > Looks like you have empty PARTUUID in the kernel command line. Which wks > file do you use for this image? Which layers? Can you show your > bootloader config? > >> Please append a correct "root=" boot option; here are the available >> partitions: >> 0100 4096 ram0 (driver?) >> 0101 4096 ram1 (driver?) >> 0102 4096 ram2 (driver?) >> 0103 4096 ram3 (driver?) >> 0104 4096 ram4 (driver?) >> 0105 4096 ram5 (driver?) >> 0106 4096 ram6 (driver?) >> 0107 4096 ram7 (driver?) >> 0108 4096 ram8 (driver?) >> 0109 4096 ram9 (driver?) >> 010a 4096 ram10 (driver?) >> 010b 4096 ram11 (driver?) >> 010c 4096 ram12 (driver?) >> 010d 4096 ram13 (driver?) >> 010e 4096 ram14 (driver?) >> 010f 4096 ram15 (driver?) >> b300 3735552 mmcblk1 driver: mmcblk >> b301 16384 mmcblk1p1 2848be0f-01 >> b302 756704 mmcblk1p2 2848be0f-02 >> b310 4096 mmcblk1boot1 (driver?) >> b308 4096 mmcblk1boot0 (driver?) >> VFS: Unable to mount root fs on unknown-block(0,0) >> User configuration error - no valid root filesystem found >> Kernel panic - not syncing: Invalid configuration from end user >> prevents conting >> CPU: 0 PID: 1 Comm: swapper Not tainted 4.8.12-yocto-standard #3 >> Hardware name: Generic AM33XX (Flattened Device Tree) >> [<c010f260>] (unwind_backtrace) from [<c010c11c>] (show_stack+0x20/0x24) >> [<c010c11c>] (show_stack) from [<c0493068>] (dump_stack+0x20/0x28) >> [<c0493068>] (dump_stack) from [<c01f20f4>] (panic+0xc0/0x22c) >> [<c01f20f4>] (panic) from [<c0f013ac>] (mount_block_root+0x19c/0x274) >> [<c0f013ac>] (mount_block_root) from [<c0f0163c>] (mount_root+0xd0/0x124) >> [<c0f0163c>] (mount_root) from [<c0f01810>] (prepare_namespace+0x180/0x1c0) >> [<c0f01810>] (prepare_namespace) from [<c0f00f3c>] >> (kernel_init_freeable+0x220/) >> [<c0f00f3c>] (kernel_init_freeable) from [<c0964fb8>] >> (kernel_init+0x18/0x11c) >> [<c0964fb8>] (kernel_init) from [<c01078b8>] (ret_from_fork+0x14/0x3c) >> ---[ end Kernel panic - not syncing: Invalid configuration from end >> user preveng >> >> ===== >> >> How to fix it ? thanks >> >> >> On 17/08/17 22:16, Leonardo Sandoval wrote: >>> On Thu, 2017-08-17 at 18:37 +0800, Riko Ho wrote: >>>> Dear Yocto Team Members, >>>> >>>> I tried to dd *.wic to nand flash but always got kernel panic, it can >>>> not find rootfs >>>> when I dd the same file to sd card, it worked. >>>> >> >from the bootloader command prompt, you may need to change the root >>> kernel parameter and point to the device where the filesystem resides. >>> >>> >>>> I copy only *.wic file to usb drive n dd it. >>>> Do I need the whole directory of images for dd? or I need hddimg? >>>> >>>> Regards, >>>> Riko >>>> >> -- >> /***** >> Sent By >> Ubuntu 16.04 LTS >> Kernel 4.4.0-92-generic >> Regards, >> Riko H >> *****/ >> >> -- >> _______________________________________________ >> yocto mailing list >> yocto@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/yocto -- /***** Sent By Ubuntu 16.04 LTS Kernel 4.4.0-92-generic Regards, Riko H *****/ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: dd to nand flash chip? 2017-08-19 2:31 ` Riko @ 2017-08-21 8:32 ` Ed Bartosh 0 siblings, 0 replies; 12+ messages in thread From: Ed Bartosh @ 2017-08-21 8:32 UTC (permalink / raw) To: Riko; +Cc: yocto@yoctoproject.org On Sat, Aug 19, 2017 at 10:31:32AM +0800, Riko wrote: > When I did fdisk -l here was what I got : > > Disk /dev/mmcblk0: 14.6 GiB, 15640559616 bytes, 30547968 sectors > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disklabel type: dos > Disk identifier: 0x156b2128 > > Device Boot Start End Sectors Size Id Type > /dev/mmcblk0p1 * 8 42605 42598 20.8M c W95 FAT32 (LBA) > /dev/mmcblk0p2 42608 2171617 2129010 1G 83 Linux > > > Disk /dev/mmcblk1: 3.6 GiB, 3825205248 bytes, 7471104 sectors > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disklabel type: dos > Disk identifier: 0x19fcf925 > > Device Boot Start End Sectors Size Id Type > /dev/mmcblk1p1 * 8 32775 32768 16M c W95 FAT32 (LBA) > /dev/mmcblk1p2 32776 1546183 1513408 739M 83 Linux > > > Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > > > Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > > I boot from : > > Disk /dev/mmcblk0: 14.6 GiB, 15640559616 bytes, 30547968 sectors > > but I can't boot from : Disk /dev/mmcblk1 which is NAND flash chip. > > Is there a partition problem here ? thanks > I can tell you more after I can see .wks file you're using. So far I can guess that you're using something similar to scripts/lib/wic/canned-wks/directdisk.wks which uses this or similar partitioning scheme: part /boot --source bootimg-pcbios --ondisk sda --label boot --active --align 1024 part / --source rootfs --use-uuid --fstype=ext4 --label platform --align 1024 --use-uuid option means that kernel command line in bootloader configuration file contains root=PARTUUID=<root partition UUID>. That works for your USB drive (/dev/mmcblk0), but doesn't work for your NAND for some reason. There is a simple workaround for this issue(you can switch to using device names instead of PARTUUID in .wks). However, it would be better to investigate and fix this properly. As I don't have a device to reproduce this I need your help. We can either continue here or you can contact me(ed21) on #yocto freenode channel. There I can help you faster I hope. Regards, Ed > On 18/08/17 16:58, Ed Bartosh wrote: > >On Fri, Aug 18, 2017 at 11:40:58AM +0800, Riko wrote: > >>Here's the boot messages : > >> > >>=== > >> > >>VFS: PARTUUID= is invalid. > >>Expected PARTUUID=<valid-uuid-id>[/PARTNROFF=%d] > >>Disabling rootwait; root= is invalid. > >>VFS: Cannot open root device "PARTUUID=" or unknown-block(0,0): error -6 > >Looks like you have empty PARTUUID in the kernel command line. Which wks > >file do you use for this image? Which layers? Can you show your > >bootloader config? > > > >>Please append a correct "root=" boot option; here are the available > >>partitions: > >>0100 4096 ram0 (driver?) > >>0101 4096 ram1 (driver?) > >>0102 4096 ram2 (driver?) > >>0103 4096 ram3 (driver?) > >>0104 4096 ram4 (driver?) > >>0105 4096 ram5 (driver?) > >>0106 4096 ram6 (driver?) > >>0107 4096 ram7 (driver?) > >>0108 4096 ram8 (driver?) > >>0109 4096 ram9 (driver?) > >>010a 4096 ram10 (driver?) > >>010b 4096 ram11 (driver?) > >>010c 4096 ram12 (driver?) > >>010d 4096 ram13 (driver?) > >>010e 4096 ram14 (driver?) > >>010f 4096 ram15 (driver?) > >>b300 3735552 mmcblk1 driver: mmcblk > >> b301 16384 mmcblk1p1 2848be0f-01 > >> b302 756704 mmcblk1p2 2848be0f-02 > >>b310 4096 mmcblk1boot1 (driver?) > >>b308 4096 mmcblk1boot0 (driver?) > >>VFS: Unable to mount root fs on unknown-block(0,0) > >>User configuration error - no valid root filesystem found > >>Kernel panic - not syncing: Invalid configuration from end user > >>prevents conting > >>CPU: 0 PID: 1 Comm: swapper Not tainted 4.8.12-yocto-standard #3 > >>Hardware name: Generic AM33XX (Flattened Device Tree) > >>[<c010f260>] (unwind_backtrace) from [<c010c11c>] (show_stack+0x20/0x24) > >>[<c010c11c>] (show_stack) from [<c0493068>] (dump_stack+0x20/0x28) > >>[<c0493068>] (dump_stack) from [<c01f20f4>] (panic+0xc0/0x22c) > >>[<c01f20f4>] (panic) from [<c0f013ac>] (mount_block_root+0x19c/0x274) > >>[<c0f013ac>] (mount_block_root) from [<c0f0163c>] (mount_root+0xd0/0x124) > >>[<c0f0163c>] (mount_root) from [<c0f01810>] (prepare_namespace+0x180/0x1c0) > >>[<c0f01810>] (prepare_namespace) from [<c0f00f3c>] > >>(kernel_init_freeable+0x220/) > >>[<c0f00f3c>] (kernel_init_freeable) from [<c0964fb8>] > >>(kernel_init+0x18/0x11c) > >>[<c0964fb8>] (kernel_init) from [<c01078b8>] (ret_from_fork+0x14/0x3c) > >>---[ end Kernel panic - not syncing: Invalid configuration from end > >>user preveng > >> > >>===== > >> > >>How to fix it ? thanks > >> > >> > >>On 17/08/17 22:16, Leonardo Sandoval wrote: > >>>On Thu, 2017-08-17 at 18:37 +0800, Riko Ho wrote: > >>>>Dear Yocto Team Members, > >>>> > >>>>I tried to dd *.wic to nand flash but always got kernel panic, it can > >>>>not find rootfs > >>>>when I dd the same file to sd card, it worked. > >>>> > >>>from the bootloader command prompt, you may need to change the root > >>>kernel parameter and point to the device where the filesystem resides. > >>> > >>> > >>>>I copy only *.wic file to usb drive n dd it. > >>>>Do I need the whole directory of images for dd? or I need hddimg? > >>>> > >>>>Regards, > >>>>Riko > >>>> > >>-- > >>/***** > >>Sent By > >>Ubuntu 16.04 LTS > >>Kernel 4.4.0-92-generic > >>Regards, > >>Riko H > >>*****/ > >> > >>-- > >>_______________________________________________ > >>yocto mailing list > >>yocto@yoctoproject.org > >>https://lists.yoctoproject.org/listinfo/yocto > > -- > /***** > Sent By > Ubuntu 16.04 LTS > Kernel 4.4.0-92-generic > Regards, > Riko H > *****/ > -- -- Regards, Ed ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2017-08-21 8:56 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-08-17 10:37 dd to nand flash chip? Riko Ho 2017-08-17 14:16 ` Leonardo Sandoval 2017-08-17 23:37 ` Riko Ho 2017-08-18 3:40 ` Riko 2017-08-18 8:58 ` Ed Bartosh 2017-08-18 11:56 ` Riko Ho 2017-08-21 8:08 ` Ed Bartosh 2017-08-19 2:08 ` Riko 2017-08-21 8:09 ` Ed Bartosh 2017-08-19 2:17 ` Riko 2017-08-19 2:31 ` Riko 2017-08-21 8:32 ` Ed Bartosh
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.