Device use embedded Linux version, 11 MTD partitions created on "gen_nand" at boot time.

# cat /proc/mtd
dev:    size  erasesize  name
mtd0: 00060000 00004000 "u-boot"
mtd1: 00020000 00004000 "u-bootenv"
mtd2: 013e0000 00004000 "ROMIMAGE"
mtd3: 00700000 00004000 "HALFIMAGE"
mtd4: 01260000 00004000 "LINUX_ROOTFS"
mtd5: 00200000 00004000 "HS_FW"
mtd6: 00100000 00004000 "FPAR"
mtd7: 00080000 00004000 "CISCO"
mtd8: 00020000 00004000 "EEPROM"
mtd9: 00080000 00004000 "NVRAM"
mtd10: 00080000 00004000 "CA_DATA"

BusyBox v1.10.2 (2017-08-02 14:07:25 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
# mount -t proc proc /proc
# mount -t sysfs sysfs /sys
# mount -t tmpfs tmpfs /tmp
# mount -t tmpfs none /dev
# mkdir /dev/pts
# mount -t devpts none /dev/pts

# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw)

# cat /proc/filesystems
nodev  sysfs
nodev  rootfs
nodev  bdev
nodev  proc
nodev  debugfs
nodev  sockfs
nodev  pipefs
nodev  anon_inodefs
nodev  tmpfs
nodev  inotifyfs
nodev  configfs
nodev  devpts
nodev  ramfs
nodev  nfs
nodev  jffs2
nodev  mqueue
nodev  rpc_pipefs

Connection with board via serial port, and I'm in limited Busybox shell(ash). Linux root filesystem is squashfs, read-only filesystem on mtd4 (LINUX_ROOTFS). How to mount the root file system, what is correct steps? I know I need a pair mtdx/mtdblockx of device nodes to access flash file system.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.