Reading squashfs from spi nor mtd device
Mike Looijmans
mike.looijmans at topic.nl
Thu Jun 8 14:53:00 CEST 2023
Been banging my head most of the day, can't figure it out.
Have squashfs support compiled in, and can load files and so from MMC
device.
What I really want is to read (kernel etc) from a QSPI NOR flash (using
mtd I guess?)
For mmc it's easy:
Zynq> sqfsls mmc 0:2
bin/
boot/
dev/
etc/
home/
lib/
<SYM> linuxrc
media/
<SYM> mnt
proc/
run/
sbin/
sys/
<SYM> tmp
usr/
var/
www/
3 file(s), 14 dir(s)
For QSPI NOR, I can't find any clue as for what I should pass to sqfsls
as "device" parameters. I have MTD set up, and I can load ubifs just
fine from this flash, using "ubi part qspi-rootfs" when there's an ubi
fileystem in there...
Zynq> mtd list
List of MTD devices:
* nor0
- device: flash at 0
- parent: spi at e000d000
- driver: jedec_spi_nor
- path: /axi/spi at e000d000/flash at 0
- type: NOR flash
- block size: 0x10000 bytes
- min I/O: 0x1 bytes
- 0x000000000000-0x000002000000 : "nor0"
- 0x000000000000-0x000000100000 : "qspi-boot-bin"
- 0x000000100000-0x000002000000 : "qspi-rootfs"
So what are the "magic" words I need to pass to sqfsload to make it read
the flash device?
--
Mike Looijmans
System Expert
TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands
T: +31 (0) 499 33 69 69
E: mike.looijmans at topic.nl
W: www.topic.nl
More information about the U-Boot
mailing list