您尚未登录。

楼主 #1 2018-09-14 17:01:26

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

为什么没有mtdblock3?

Log内容如下:
4 cmdlinepart partitions found on MTD device spi32766.0
[    0.863704] Creating 4 MTD partitions on "spi32766.0":
[    0.868870] 0x000000000000-0x000000100000 : "uboot"
[    0.874351] 0x000000100000-0x000000110000 : "dtb"
[    0.879546] 0x000000110000-0x000000910000 : "kernel"
[    0.884861] 0x000000910000-0x000001000000 : "rootfs"
[    0.890672] libphy: Fixed MDIO Bus: probed
[    0.895257] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.901785] ehci-platform: EHCI generic platform driver
[    0.907328] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.912959] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.920913] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[    0.955216] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.962425] hub 1-0:1.0: USB hub found
[    0.966369] hub 1-0:1.0: 1 port detected
[    0.970855] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.977153] ohci-platform: OHCI generic platform driver
[    0.982697] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.989416] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.997386] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[    1.070300] hub 2-0:1.0: USB hub found
[    1.074129] hub 2-0:1.0: 1 port detected
[    1.081670] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.091356] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.098253] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.102825] i2c /dev entries driver
[    1.107796] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    1.117341] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.185428] sunxi-mmc 1c0f000.mmc: base:0xc406b000 irq:23
[    1.192420] usbcore: registered new interface driver usbhid
[    1.198094] usbhid: USB HID core driver
[    1.203739] NET: Registered protocol family 17
[    1.208430] Key type dns_resolver registered
[    1.212850] Registering SWP/SWPB emulation handler
[    1.223417] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.234077] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.252332] Console: switching to colour frame buffer device 100x30
[    1.264807] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.273357] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.284746] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.290587] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.299677] hub 3-0:1.0: USB hub found
[    1.303536] hub 3-0:1.0: 1 port detected
[    1.308735] using random self ethernet address
[    1.313191] using random host ethernet address
[    1.318810] usb0: HOST MAC 2e:e2:d3:8c:ab:44
[    1.323131] usb0: MAC fe:f5:30:5d:80:8c
[    1.327113] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.334591] g_cdc gadget: g_cdc ready
[    1.338618] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:02:39 UTC (159)
[    1.347023] vcc3v0: disabling
[    1.349998] vcc5v0: disabling
[    1.352963] ALSA device list:
[    1.355980]   No soundcards found.
[    1.359563] Warning: unable to open an initial console.
[    1.367436] Freeing unused kernel memory: 2048K

Welcome to Lichee Pi
Lichee login: root
# ls
# cd ..
# ls
bin      lib      media    proc     sbin     usr
dev      lib32    mnt      root     sys      var
etc      linuxrc  opt      run      tmp
# mount -t jffs2 /dev/mtd
mtd0    mtd0ro  mtd1    mtd1ro  mtd2    mtd2ro  mtd3    mtd3ro
# mount -t jffs2 /dev/mtd
mtd0    mtd0ro  mtd1    mtd1ro  mtd2    mtd2ro  mtd3    mtd3ro
# mount -t jffs2 /dev/mtd3 /mnt/
mount: mounting /dev/mtd3 on /mnt/ failed: No such device
# modprob mtdblock3
-sh: modprob: not found
# ls
bin      lib      media    proc     sbin     usr
dev      lib32    mnt      root     sys      var
etc      linuxrc  opt      run      tmp
# cd dev/
# ls
bus                 ptyv7               ttyd9
console             ptyv8               ttyda
cpu_dma_latency     ptyv9               ttydb
fb0                 ptyva               ttydc
full                ptyvb               ttydd
gpiochip0           ptyvc               ttyde
i2c-0               ptyvd               ttydf
input               ptyve               ttye0
kmsg                ptyvf               ttye1
log                 ptyw0               ttye2
mem                 ptyw1               ttye3
memory_bandwidth    ptyw2               ttye4
mtd0                ptyw3               ttye5
mtd0ro              ptyw4               ttye6
mtd1                ptyw5               ttye7
mtd1ro              ptyw6               ttye8
mtd2                ptyw7               ttye9
mtd2ro              ptyw8               ttyea
mtd3                ptyw9               ttyeb
mtd3ro              ptywa               ttyec
network_latency     ptywb               ttyed
network_throughput  ptywc               ttyee

离线

楼主 #2 2018-09-14 17:03:08

pqfeng
会员
注册时间: 2018-08-18
已发帖子: 129
积分: 129

Re: 为什么没有mtdblock3?

上面内容显示,产生MTD是解析出来了4个区,所以在/dev/下有mtd0,mtd1,mtd2,mtd3,但我通过Mount的方式想把它挂到/mnt目录下,却进行不了。
不知道,要如何进行?mtdblock3,要不要进行格式化?

离线

#3 2018-09-14 17:05:44

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 为什么没有mtdblock3?

flash_eraseall /dev/mtd3

mkdir -p /mnt/data

mount -t jffs2 /dev/mtdblock3 /mnt/data/


其中 flash_eraseall 是 busybox 里面的命令.





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn