Hello,
I've built a core-image-minimal-initramfs image to test its deployment in RAM, and I changed the image type to:
I changed the fdt variable to:
I have created a NAND partition "RamDisk", I download and store the initramfs image to RAM address 0x13000000, and I write it to this partition.
I have also changed the variable:
When I boot, I run into the following:
Code
- Loading from nand0, offset 0x240000
- zImage detected
- NAND read: device 0 offset 0x1240000, size 0x1c0000 1835008 bytes read: OK
- ## Booting kernel from zImage at 11000000
- ## Loading init Ramdisk from Legacy Image at 13000000 ... Image Name: core-image-minimal-initramfs-fsi Image Type: ARM Linux RAMDisk Image (uncompressed) Data Size: 5526515 Bytes = 5.3 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK
- ## Flattened Device Tree blob at 12000000 Booting using the fdt blob at 0x12000000 Loading Kernel Image Loading Ramdisk to 4ee0d000, end 4f3523f3 ... OK Using Device Tree in place at 12000000, end 1200ee15 Setting run-time properties
- ## Overwriting property gpmi-nand@00112000/fus,ecc_strength from device tree!
- ## Overwriting property bdinfo/ecc_strength from device tree!
- ## Keeping property bdinfo/board_name from device tree!
- Starting kernel ...
But when the actual rootfs shall be mounted, there is an issue:
Code
- Run /init as init process
- Starting version 250.5+
- mtdblock: MTD device 'NBoot' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'UserDef' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'Refresh' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'UBoot' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'UBootEnv' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'Kernel' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'RamDisk' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'FDT' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'TargetFS' is NAND, please consider using UBI block devices instead.
- Waiting for removable media... 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
- Mounted filesystems
- Available block devices
- major minor #blocks name
- 1 0 8192 ram0 1 1 8192 ram1 1 2 8192 ram2 1 3 8192 ram3 1 4 8192 ram4 1 5 8192 ram5 1 6 8192 ram6 1 7 8192 ram7 31 0 256 mtdblock0 31 1 768 mtdblock1 31 2 256 mtdblock2 31 3 768 mtdblock3 31 4 256 mtdblock4 31 5 8192 mtdblock5 31 6 8192 mtdblock6 31 7 1792 mtdblock7 31 8 241664 mtdblock8 179 0 3817472 mmcblk2
- Cannot find rootfs.img file in /run/media/* , dropping to a shell
If I set the rootfs variable back to default:
The ramdisk image is still successfully read, bit this time, the boot sequence runs into:
Code
- Run /init as init process
- Starting version 250.5+
- mtdblock: MTD device 'UserDef' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'NBoot' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'Refresh' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'UBoot' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'UBootEnv' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'Kernel' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'RamDisk' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'FDT' is NAND, please consider using UBI block devices instead.
- mtdblock: MTD device 'TargetFS' is NAND, please consider using UBI block devices instead.
- root 'ubi0:rootfs' doesn't exist or does not contain a /dev.
I assume, there is a problem with handing over from the initramfs to the actual rootfs. Any suggestions?
Thanks!
Bjørn