Hello,
I am using instructions from Image Setup - Docs. The docker container to test mips via qemu-system-mips command:
docker run --privileged --net host -v </your/host/path/to/pflash.img>:/tmp/pflash.img -it --rm pantacor/qemu-malta-16m
was modified as:
docker run --net host --privileged -it --rm --mount type=bind,src=“</your/host/path/to/pflash.img>”,target=“/tmp/pflash.img” pantacor/qemu-malta-16m
Now the issue being that docker container for qemu-malta-16m is using this shell script named qemu.sh which reads $0 as the path given for /tmp/pflash.img. The provided (mount bound) image is RAW format such that qemu disables the write function.
Advising the following for the docker registry “pantacor/qemu-malta-16m”
In qemu.sh please modify qemu-system-mips to read /tmp/pflash.img as follows:
I am not 100% sure if my qemu-malta.img is bad or perhaps this is a legitimate issue with the way qemu-system-mips.
I am attaching my docker run output here for team to inspect:
brctl addif qemu-br0 tap1
WARNING: Image format was not specified for ‘/tmp/pflash.img’ and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the ‘raw’ format explicitly to remove the restrictions.
Board: MIPS Malta CoreLV
DRAM: 128 MiB
Flash: 16 MiB
In: serial@3f8
Out: serial@3f8
Err: serial@3f8
Net: pcnet#0
Warning: pcnet#0 MAC addresses don’t match:
Address in SROM is 02:c7:71:ad:2e:41
Address in environment is 52:54:00:12:34:56
, pcnet#1
Hit any key to stop autoboot: 0
ubi0: attaching mtd1
ubi0: scanning is finished
ubi0: attached mtd1 (name “mtd=2”, size 15 MiB)
ubi0: PEB size: 65536 bytes (64 KiB), LEB size: 65408 bytes
ubi0: min./max. I/O unit sizes: 1/4, sub-page size 4
ubi0: VID header offset: 64 (aligned 64), data offset: 128
ubi0: good PEBs: 247, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 793842850
ubi0: available PEBs: 0, total reserved PEBs: 247, PEBs reserved for bad PEB handling: 0
Error reading superblock on volume ‘ubi0:data’ errno=-12!
ubifsmount - mount UBIFS volume
Usage:
ubifsmount
- mount ‘volume-name’ volume
UBIFS not mounted, use ubifs mount to mount volume first!
ubifsload - load file from an UBIFS filesystem
Usage:
ubifsload [bytes]
- load file ‘filename’ to address ‘addr’
Warning: defaulting to text format
Warning: defaulting to text format
UBIFS not mounted, use ubifs mount to mount volume first!
ubifsload - load file from an UBIFS filesystem
Hello,
I must have over complicated an already solved and working command. My initial attempt to run failed with above errors that i attempted to address with mount bind etc commands added to docker run. I am now certain that as i complicated this test, it added even more complicated issues that cascaded. However as you guys suggested in responses and i have verified that it runs as expected.
Thank you so much for the help. I am now evaluating the mips image and will post further questions in a new thread.