cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
liuhaha
Visitor
Visitor
1,521 Views
Registered: ‎07-27-2015

Zynq petalinux only boot rootfs from SD card, Other components boot form other device

Jump to solution

   Hi, I'am using Petalinux 2018.3 to configure zynq device .

   I have succeed to boot image form JTAG and QSPI Flash, but the rootfs is volatility of  these ways. So I want only boot rootfs from SD card, and for system stability, boot the FSBL, bit file, u-boot, kernel from QSPI flash.

   I follow the ug1144 - Configuring SD Card ext filesystem Boot. 

But i just formatted the SD card with one ext4 partition, not formated boot partition. The Image packaging Configuration is configured as follow:

 

捕获.PNG

 

I also added the boot arg: root=/dev/mmcblk1p1 rw rootfstype=ext4 rootdelay=5 in the dtsi file.

  When I use petalinux-boot --jtag --fpga --bitstream images/linux/system.bit --uboot command ,I get this Error in the console:

 

Waiting 5 sec before mounting root device...
mmc0: new high speed SDHC card at address aaaa
mmcblk0: mmc0:aaaa SC32G 29.7 GiB 
 mmcblk0: p1
VFS: Cannot open root device "mmcblk1p1" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
0100           16384 ram0 
 (driver?)
0101           16384 ram1 
 (driver?)
0102           16384 ram2 
 (driver?)
0103           16384 ram3 
 (driver?)
0104           16384 ram4 
 (driver?)
0105           16384 ram5 
 (driver?)
0106           16384 ram6 
 (driver?)
0107           16384 ram7 
 (driver?)
0108           16384 ram8 
 (driver?)
0109           16384 ram9 
 (driver?)
010a           16384 ram10 
 (driver?)
010b           16384 ram11 
 (driver?)
010c           16384 ram12 
 (driver?)
010d           16384 ram13 
 (driver?)
010e           16384 ram14 
 (driver?)
010f           16384 ram15 
 (driver?)
1f00           14336 mtdblock0 
 (driver?)
1f01             128 mtdblock1 
 (driver?)
1f02           10752 mtdblock2 
 (driver?)
1f03           40320 mtdblock3 
 (driver?)
b300        31166976 mmcblk0 
 driver: mmcblk
  b301        31150560 mmcblk0p1 c4fd117c-01

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.14.0-xilinx-v2018.3 #4
Hardware name: Xilinx Zynq Platform
[<c010e894>] (unwind_backtrace) from [<c010aad0>] (show_stack+0x10/0x14)
[<c010aad0>] (show_stack) from [<c0634188>] (dump_stack+0x80/0xa0)
[<c0634188>] (dump_stack) from [<c010cff8>] (ipi_cpu_stop+0x3c/0x70)
[<c010cff8>] (ipi_cpu_stop) from [<c010d818>] (handle_IPI+0x64/0x84)
[<c010d818>] (handle_IPI) from [<c0101420>] (gic_handle_irq+0x84/0x90)
[<c0101420>] (gic_handle_irq) from [<c010b50c>] (__irq_svc+0x6c/0xa8)
Exception stack(0xef05ff58 to 0xef05ffa0)
ff40:                                                       00000000 00000001
ff60: 2eea0000 ef7e5d40 68391781 00000001 ef7e5200 00000001 665ffac6 00000001
ff80: 00000000 00000001 00000016 ef05ffa8 c04d56b4 c04d56d8 60000113 ffffffff
[<c010b50c>] (__irq_svc) from [<c04d56d8>] (cpuidle_enter_state+0xe4/0x1b4)
[<c04d56d8>] (cpuidle_enter_state) from [<c01494a8>] (do_idle+0x148/0x1a8)
[<c01494a8>] (do_idle) from [<c0149640>] (cpu_startup_entry+0x18/0x1c)
[<c0149640>] (cpu_startup_entry) from [<001016cc>] (0x1016cc)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

 

What is wrong? Is it possible to store rootfs and other images on different devices separately?

 

0 Kudos
1 Solution

Accepted Solutions
aravindb
Moderator
Moderator
1,484 Views
Registered: ‎02-07-2018

HI @liuhaha 

Looks you are providing wrong partion for bootargs . Could you please follow this forum post:

https://forums.xilinx.com/t5/Embedded-Linux/petalinx-sd-mmcblk0p2-rootfs/m-p/963968#M33097

Thanks & regards

Araivnd

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

 

View solution in original post

0 Kudos
3 Replies
aravindb
Moderator
Moderator
1,485 Views
Registered: ‎02-07-2018

HI @liuhaha 

Looks you are providing wrong partion for bootargs . Could you please follow this forum post:

https://forums.xilinx.com/t5/Embedded-Linux/petalinx-sd-mmcblk0p2-rootfs/m-p/963968#M33097

Thanks & regards

Araivnd

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

 

View solution in original post

0 Kudos
rfs613
Scholar
Scholar
1,483 Views
Registered: ‎05-28-2013

It looks like you need to use root=mmcblk0p1 rather than mmcblk1p1.

0 Kudos
liuhaha
Visitor
Visitor
1,417 Views
Registered: ‎07-27-2015
You are right, i made a stupid mistake.
0 Kudos