AnsweredAssumed Answered

T1023 QorIQ-SDK-V1.7 Increasing ramdisk image higher than 32MB

Question asked by SANGILI KUMAR on Apr 26, 2018
Latest reply on May 14, 2018 by Pavel Chubakov

Working in T1023 with QorIQ-SDK-V1.7.

When the "fsl-image-core-t1023rdb-xxxx" less than 32MB no issue while booting.

After development the image size got increased around 50MB, if we boot with this image we are getting following error while booting.

 

How to increase the ramdisk size in kernel/bootargs?

 

bootargs =/dev/ram rw console=ttyS0,115200,ramdisk_size=10240000

(below mentioned bootlog is for 40MB image size)

 

=> bootm 0x1000000 0x6000000 0xc00000
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-3.12.19-rt30-QorIQ-SDK-V1.
Created: 2017-07-21 7:00:18 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 4814712 Bytes = 4.6 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 06000000 ...
Image Name: fsl-image-core-t1023rdb-20180426
Created: 2018-04-26 13:13:00 UTC
Image Type: PowerPC Linux RAMDisk Image (gzip compressed)
Data Size: 41660439 Bytes = 39.7 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 00c00000
Booting using the fdt blob at 0xc00000
Uncompressing Kernel Image ... OK
Loading Ramdisk to 2d844000, end 2ffff017 ... OK
Loading Device Tree to 03fe6000, end 03fff4ff ... OK

........

RAMDISK: gzip image found at block 0
RAMDISK: incomplete write (19610 != 32768)
write error
VFS: Mounted root (ext2 filesystem) on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 300K (c0953000 - c099e000)
EXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, inode_bitmap = 131074

.....

PoEXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, inode_bitmap = 131074
pulating dev cache
tar: can't open '/etc/dev.tar': Input/output error
/etc/rcS.d/S37populate-volatile.sh: line 56: /etc/volatile.cache.build: Input/output errEXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - b4
or
/etc/rcS.d/S37populate-volatile.sh: line 56: /etc/volatile.cache.build: Input/output error
/etc/rcS.d/S37populate-volatile.sh: line 56: /etc/volatile.cacheEXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, inode_b4
.build: Input/output error
/etc/rcS.d/S37populate-volatile.sh: line 84: /etc/volatile.cacheEXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, inode_b4
.build: Input/output error
/etc/rcS.d/S37populate-volatile.sh: line 84: /etc/volatile.cacheEXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, inode_b4
.build: Input/output error
/etc/rcS.d/S37populate-volatile.sh: line 84: /etc/volatile.cacheEXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, inode_b4
.build: Input/output error
/etc/rcS.d/S37populate-volatile.sh: line 84: /etc/volatile.cacheEXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, inode_b4
.build: Input/output error
/etc/rcS.d/S37populate-volatile.sh: line 84: /etc/volatile.cacheEXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, inode_b4
EXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 17, inode_bitmap = 139266
.build: Input/output error
ln: failed to create symbolic link '/tmp': Input/output error
/etc/rcS.d/S37populate-volatile.sh: line 56: /etc/volatile.cache.builEXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, in4
d: Input/output error
/etc/rcS.d/S37populate-volatile.EXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, inode_bitmap = 131074
sh: line 33: /etc/volatile.cacheEXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, inode_bitmap = 131074
.build: Input/output error
/etc/rcS.d/S37populate-volatile.sh: line 33: /etc/volatile.cache.buiEXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, ino4
ld: Input/output error
/etc/rcSEXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, inode_bitmap = 131074
.d/S37populate-volatile.sh: line 84: /etc/volatile.cache.build: Input/output error
/etc/rcS.d/S37populate-volatile.sh: line 33: /etc/volatile.cache.build: Input/output error
ln: failed to create symbolic link '/etc/resolv.conf': Input/output error
EXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, inode_bitmap = 131074
/etc/rcS.d/S37populate-volatile.sh: line 56: /etc/volatile.cache.build: Input/output error
EXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, inode_bitmap = 131074
/etc/rcS.d/S37populate-volatile.sh: line 56: /etc/volatile.cache.build: Input/output error

Outcomes