AnsweredAssumed Answered

Error on Topaz/fs-core-image/LXC/Libvirt

Question asked by Juan Rodrigo on Sep 18, 2015
Latest reply on Sep 28, 2015 by Scott Wood

We would like to load a modified version of the fsl-image-core with LXC and libvirt using Topaz.

We have modified the file hypervisor configuration tree. The changes have been the followings:

 

    images_pma {
            compatible = "phys-mem-area";
            addr = <0x0 0x78000000>;
            size = <0x0 0x6000000>;
    };

 

    pma15 {
            compatible = "phys-mem-area";
            addr = <0x0 0x7e000000>;
            size = <0x0 0x1000000>;
            linux,phandle = <0x6>;
            phandle = <0x6>;
    };

 

    hv_pma {
            compatible = "phys-mem-area";
            addr = <0x0 0x80000000>;
            size = <0x0 0x1000000>;
            linux,phandle = <0x2>;
            phandle = <0x2>;
    };

 

    part1 {
            compatible = "partition";
            label = "p1-linux";
            cpus = <0x0 0x3>;
            guest-image = <0x0 0x78020000 0x0 0x0 0x0 0x700000>;
            linux-rootfs = <0x0 0x79300000 0x0 0x5000000 0x0 0x4000000>;
            dtb-window = <0x0 0x1000000 0x0 0x20000>;
            no-dma-disable;

 

    part2 {
            compatible = "partition";
            label = "p2-linux";
            cpus = <0x3 0x1>;
            guest-image = <0x0 0x78020000 0x0 0x0 0x0 0x700000>;
            linux-rootfs = <0x0 0x79300000 0x0 0x5000000 0x0 0x4000000>;
            dtb-window = <0x0 0x1000000 0x0 0x20000>;
            no-dma-disable;

 

The sizes of the binaries are:

 

-rw-r--r-- 1 t1040 t1040  48M sep 17 15:11 fsl-image-core-t1040rdb-20150917130600.rootfs.ext2.gz.u-boot

-rw-r--r-- 1 t1040 t1040 4,6M sep 16 12:36 uImage--3.12-r0-t1040rdb-20150916102323.bin

-rw-r--r-- 1 t1040 t1040  36K sep 17 15:41 uImage--3.12-r0-t1040rdb-usdpaa-20150916102323.dtb

 

The uboot commands to start form the RAM are:

 

tftp 78020000 uImage--3.12-r0-t1040rdb-20150916102323.bin

tftp 79300000 fsl-image-core-t1040rdb-20150917130600.rootfs.ext2.gz.u-boot

tftp 78700000 hv.uImage

tftp 0x78800000 uImage--3.12-r0-t1040rdb-usdpaa-20150916102323.dtb

tftp 0x78900000 hv.dtb

 

On booting the system we got the error below:

 

RAMDISK: gzip image found at block 0

2RAMDISK: incomplete write (9290 != 32768)

write error

VFS: Mounted root (ext2 filesystem) readonly on device 1:0.

devtmpfs: mounted

Freeing unused kernel memory: 284K (c0923000 - c096a000)

INIT: version 2.88 booting

Starting udev

udevd[619]: starting version 182

1RAMDISK: incomplete write (9290 != 32768)

write error

VFS: Mounted root (ext2 filesystem) readonly on device 1:0.

devtmpfs: mounted

Freeing unused kernel memory: 284K (c0923000 - c096a000)

INIT: version 2.88 booting

Starting udev

udevd[969]: starting version 182

seville ffe800000.l2switch: Found Seville Switch, UIO device - IRQ 293, id 0x099530e9.

seville MAC address not found

2Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory

bootlogd.

EXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 17, inode_bitmap = 139266

urandom start: failed.

Populating dev cache

EXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 16, inode_bitmap = 131074

tar: can't open '/etc/dev.tar': 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

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 84: /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 84: /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 84: /etc/volatile.cache.build: Input/output error

 

 

Any suggestion to fix the problem will be appreciated.

 

Thanks in advance,

 

Juan.

Outcomes