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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

740 Views
sangili
Contributor I

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

Labels (1)
0 Kudos
1 Reply

533 Views
Pavel
NXP Employee
NXP Employee

Look at the following pages about increasing of the ramdosk_size:

https://www.denx.de/wiki/DULG/RamdiskGreaterThan4MBCausesProblems

 

and

 

https://www.denx.de/wiki/DULG/HowToIncreaseSizeOfRamdisk

 

Use the following the u-boot bootargs:

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

 

Note: value of the ramdisk_size is in Kbytes.

 


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos