cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
joancab
Teacher
Teacher
262 Views
Registered: ‎05-11-2015

Boot with external rootfs on SD card

Jump to solution

I want to boot petalinux from an SD card with external rootFS.

My card has two partitions: 1st is FAT32 label 'BOOT'. 2nd is EXT4 label 'ROOTFS'.

petalinux configuration is as below:

joancab_0-1611674189344.png

After build and package, I copy BOOT.BIN and image.ub to BOOT, and un-tar the created rootfs.tar.gz into ROOTFS.

But it fails:

[    4.704470] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    4.711960] Please append a correct "root=" boot option; here are the available partitions:
[    4.720321] 0100           65536 ram0
[    4.720323]  (driver?)
[    4.726426] 0101           65536 ram1
[    4.726428]  (driver?)
[    4.732522] 0102           65536 ram2
[    4.732523]  (driver?)
[    4.738621] 0103           65536 ram3
[    4.738623]  (driver?)
[    4.744718] 0104           65536 ram4
[    4.744719]  (driver?)
[    4.750817] 0105           65536 ram5
[    4.750818]  (driver?)
[    4.756913] 0106           65536 ram6
[    4.756914]  (driver?)
[    4.763012] 0107           65536 ram7
[    4.763013]  (driver?)
[    4.769108] 0108           65536 ram8
[    4.769110]  (driver?)
[    4.775209] 0109           65536 ram9
[    4.775211]  (driver?)
[    4.781310] 010a           65536 ram10
[    4.781311]  (driver?)
[    4.787490] 010b           65536 ram11
[    4.787492]  (driver?)
[    4.793678] 010c           65536 ram12
[    4.793680]  (driver?)
[    4.799861] 010d           65536 ram13
[    4.799863]  (driver?)
[    4.806049] 010e           65536 ram14
[    4.806051]  (driver?)
[    4.812230] 010f           65536 ram15
[    4.812232]  (driver?)
[    4.818421] 1f00            1024 mtdblock0
[    4.818423]  (driver?)
[    4.824946] 1f01             256 mtdblock1
[    4.824948]  (driver?)
[    4.831479] 103:00000  937692504 nvme0n1
[    4.831481]  (driver?)
[    4.837845]   103:00001  937691480 nvme0n1p1 d7a8c55e-01
[    4.837847]
[    4.844633] 1f02           22528 mtdblock2
[    4.844635]  (driver?)
[    4.851166] b300         3760128 mmcblk0
[    4.851168]  driver: mmcblk
[    4.857962] b318         3934208 mmcblk1
[    4.857965]  driver: mmcblk
[    4.864753]   b319          512000 mmcblk1p1 9c48f13a-01
[    4.864754]
[    4.871540]   b31a         3414016 mmcblk1p2 9c48f13a-02
[    4.871542]
[    4.878333] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

What is missing?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
joancab
Teacher
Teacher
256 Views
Registered: ‎05-11-2015

I disabled the 'generate boot args automatically' in petalinux-config:

joancab_0-1611675439946.png

 

and added     root=/dev/mmcblk1p2       to system-user.dtsi file and now it works, I think I could also have used the 'user set kernel bootargs' below (?)

 

View solution in original post

0 Kudos
1 Reply
joancab
Teacher
Teacher
257 Views
Registered: ‎05-11-2015

I disabled the 'generate boot args automatically' in petalinux-config:

joancab_0-1611675439946.png

 

and added     root=/dev/mmcblk1p2       to system-user.dtsi file and now it works, I think I could also have used the 'user set kernel bootargs' below (?)

 

View solution in original post

0 Kudos