dockstar uboot upgrade: mtd0: Read-only file system after nanddump November 15, 2018 04:12PM |
Registered: 7 years ago Posts: 114 |
Re: dockstar: can't nanddump November 15, 2018 05:33PM |
Admin Registered: 13 years ago Posts: 18,821 |
dmesg cat /proc/mtdand then go ahead do the nanddump and flashing as instructed.
Re: dockstar: can't nanddump November 15, 2018 06:01PM |
Registered: 7 years ago Posts: 114 |
[ 0.000000] Linux version 2.6.22.18 (bdietrich@buildman) (gcc version 4.2.1) #81 Tue Oct 19 16:05:00 PDT 2010 [ 0.000000] CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053177 [ 0.000000] Machine: Feroceon-KW [ 0.000000] Using UBoot passing parameters structure [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] On node 0 totalpages: 32768 [ 0.000000] DMA zone: 256 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 32512 pages, LIFO batch:7 [ 0.000000] Normal zone: 0 pages used for memmap [ 0.000000] CPU0: D VIVT write-back cache [ 0.000000] CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets [ 0.000000] CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets [ 0.000000] Built 1 zonelists. Total pages: 32512 [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2 ro [ 0.000000] PID hash table entries: 512 (order: 9, 2048 bytes) [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Memory: 128MB 0MB 0MB 0MB = 128MB total [ 0.000000] Memory: 125824KB available (3592K code, 253K data, 124K init) [ 0.000000] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776) [ 0.240000] Mount-cache hash table entries: 512 [ 0.240000] CPU: Testing write buffer coherency: ok [ 0.240000] NET: Registered protocol family 16 [ 0.240000] [ 0.240000] CPU Interface [ 0.240000] ------------- [ 0.240000] SDRAM_CS0 ....base 00000000, size 128MB [ 0.240000] SDRAM_CS1 ....disable [ 0.240000] SDRAM_CS2 ....disable [ 0.240000] SDRAM_CS3 ....disable [ 0.240000] PEX0_MEM ....base e8000000, size 128MB [ 0.240000] PEX0_IO ....base f2000000, size 1MB [ 0.240000] INTER_REGS ....base f1000000, size 1MB [ 0.240000] NFLASH_CS ....base fa000000, size 2MB [ 0.240000] SPI_CS ....base f4000000, size 16MB [ 0.240000] BOOT_ROM_CS ....no such [ 0.240000] DEV_BOOTCS ....no such [ 0.240000] CRYPT_ENG ....base f0000000, size 2MB [ 0.240000] [ 0.240000] Marvell Development Board (LSP Version KW_LSP_4.2.7_patch21_with_rx_desc_tuned)-- SHEEVA PLUG Soc: 88F6281 A0 LE [ 0.240000] [ 0.240000] Detected Tclk 200000000 and SysClk 400000000 [ 0.240000] MV Buttons Device Load [ 0.240000] Marvell USB EHCI Host controller #0: c0539600 [ 0.740000] PEX0 interface detected no Link. [ 0.740000] PCI: bus0: Fast back to back transfers enabled [ 0.740000] SCSI subsystem initialized [ 0.740000] usbcore: registered new interface driver usbfs [ 0.740000] usbcore: registered new interface driver hub [ 0.740000] usbcore: registered new device driver usb [ 0.740000] NET: Registered protocol family 2 [ 0.750000] Time: kw_clocksource clocksource has been installed. [ 0.840000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.840000] TCP established hash table entries: 4096 (order: 3, 32768 bytes) [ 0.840000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.840000] TCP: Hash tables configured (established 4096 bind 4096) [ 0.840000] TCP reno registered [ 0.870000] RTC has been updated!!! [ 0.870000] RTC registered [ 0.870000] Use the XOR engines (acceleration) for enhancing the following functions: [ 0.870000] o RAID 5 Xor calculation [ 0.870000] o kernel memcpy [ 0.870000] o kenrel memzero [ 0.870000] Number of XOR engines to use: 4 [ 0.870000] cesadev_init(c00117b0) [ 0.870000] mvCesaInit: sessions=640, queue=64, pSram=f0000000 [ 0.870000] MV Buttons Driver Load [ 0.870000] squashfs: version 3.3 (2007/10/31) Phillip Lougher [ 0.870000] squashfs: LZMA suppport for slax.org by jro [ 0.870000] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. [ 0.870000] io scheduler noop registered [ 0.870000] io scheduler anticipatory registered (default) [ 0.890000] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled [ 0.890000] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A [ 0.900000] RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize [ 0.910000] Loading Marvell Ethernet Driver: [ 0.910000] o Cached descriptors in DRAM [ 0.910000] o DRAM SW cache-coherency [ 0.920000] o Single RX Queue support - ETH_DEF_RXQ=0 [ 0.920000] o Single TX Queue support - ETH_DEF_TXQ=0 [ 0.930000] o TCP segmentation offload enabled [ 0.930000] o Receive checksum offload enabled [ 0.940000] o Transmit checksum offload enabled [ 0.940000] o Network Fast Processing (Routing) supported [ 0.950000] o Driver ERROR statistics enabled [ 0.950000] o Driver INFO statistics enabled [ 0.960000] o Proc tool API enabled [ 0.960000] o Rx descripors: q0=128 [ 0.960000] o Tx descripors: q0=532 [ 0.970000] o Loading network interface(s): [ 0.970000] o eth0, ifindex = 1, GbE port = 0 [ 0.980000] o eth1, ifindex = 2, GbE port = 1 [ 0.990000] [ 0.990000] mvFpRuleDb (c7ed4000): 1024 entries, 4096 bytes [ 0.990000] Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI [ 1.000000] Copyright (c) 1999-2006 Intel Corporation. [ 1.010000] e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI [ 1.010000] e100: Copyright(c) 1999-2006 Intel Corporation [ 1.020000] [ 1.020000] Warning Sata is Powered Off [ 1.020000] NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $ [ 1.030000] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit) [ 1.040000] Scanning device for bad blocks [ 1.060000] Bad eraseblock 341 at 0x02aa0000 [ 1.150000] Using static partition definition [ 1.150000] Creating 4 MTD partitions on "nand_mtd": [ 1.160000] 0x00000000-0x00100000 : "u-boot" [ 1.160000] 0x00100000-0x00500000 : "uImage" [ 1.170000] 0x00500000-0x02500000 : "root" [ 1.170000] 0x02500000-0x10000000 : "data" [ 1.170000] ehci_marvell ehci_marvell.70059: Marvell Orion EHCI [ 1.180000] ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1 [ 1.220000] ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100 [ 1.240000] ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 [ 1.240000] usb usb1: configuration #1 chosen from 1 choice [ 1.250000] hub 1-0:1.0: USB hub found [ 1.250000] hub 1-0:1.0: 1 port detected [ 1.370000] ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.370000] USB Universal Host Controller Interface driver v3.0 [ 1.650000] usb 1-1: new high speed USB device using ehci_marvell and address 2 [ 1.800000] usb 1-1: configuration #1 chosen from 1 choice [ 1.800000] hub 1-1:1.0: USB hub found [ 1.810000] hub 1-1:1.0: 4 ports detected [ 1.920000] usbcore: registered new interface driver usblp [ 1.920000] drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver [ 1.930000] Initializing USB Mass Storage driver... [ 1.930000] usbcore: registered new interface driver usb-storage [ 1.940000] USB Mass Storage support registered. [ 1.950000] mice: PS/2 mouse device common for all mice [ 1.950000] i2c /dev entries driver [ 1.950000] Linux telephony interface: v1.00 [ 1.960000] md: linear personality registered for level -1 [ 1.960000] md: raid0 personality registered for level 0 [ 1.970000] md: raid1 personality registered for level 1 [ 2.140000] raid6: int32x1 97 MB/s [ 2.310000] raid6: int32x2 114 MB/s [ 2.480000] raid6: int32x4 122 MB/s [ 2.650000] raid6: int32x8 110 MB/s [ 2.650000] raid6: using algorithm int32x4 (122 MB/s) [ 2.650000] md: raid6 personality registered for level 6 [ 2.660000] md: raid5 personality registered for level 5 [ 2.660000] md: raid4 personality registered for level 4 [ 2.670000] raid5: measuring checksumming speed [ 2.720000] arm4regs : 1084.000 MB/sec [ 2.770000] 8regs : 754.800 MB/sec [ 2.820000] 32regs : 899.600 MB/sec [ 2.820000] raid5: using function: arm4regs (1084.000 MB/sec) [ 2.830000] device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com [ 2.830000] dm_crypt using the OCF package. [ 2.840000] sdhci: Secure Digital Host Controller Interface driver [ 2.840000] sdhci: Copyright(c) Pierre Ossman [ 2.850000] usbcore: registered new interface driver usbhid [ 2.850000] drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver [ 2.860000] TCP cubic registered [ 2.860000] NET: Registered protocol family 1 [ 2.870000] NET: Registered protocol family 17 [ 2.870000] md: Autodetecting RAID arrays. [ 2.880000] md: autorun ... [ 2.880000] md: ... autorun DONE. [ 7.380000] Empty flash at 0x00de8e44 ends at 0x00de9000 [ 12.720000] VFS: Mounted root (jffs2 filesystem) readonly. [ 12.730000] Freeing init memory: 124K [ 14.960000] eth0: link down [ 14.960000] eth0: started [ 18.700000] eth0: link up, full duplex, speed 1 Gbps
Re: dockstar uboot upgrade: mtd0: Read-only file system after nanddump November 15, 2018 06:02PM |
Registered: 7 years ago Posts: 114 |
Re: dockstar uboot upgrade: mtd0: Read-only file system after nanddump November 15, 2018 10:07PM |
Registered: 7 years ago Posts: 369 |
Re: dockstar: can't nanddump November 15, 2018 11:55PM |
Admin Registered: 13 years ago Posts: 18,821 |
Quote
> but it shows: mtd0: Read-only file
> system
Re: dockstar uboot upgrade: mtd0: Read-only file system after nanddump November 20, 2018 10:01PM |
Registered: 7 years ago Posts: 369 |
rescue:~# df Filesystem Size Used Available Use% Mounted on ubi0:rootfs 27.0M 24.6M 2.4M 91% / tmpfs 59.7M 28.0K 59.7M 0% /tmp rescue:~# pwd /root rescue:~# >test -sh: can't create test: Read-only file system rescue:~# nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0 mtd0: Read-only file system rescue:~#
Re: dockstar uboot upgrade: mtd0: Read-only file system after nanddump November 20, 2018 10:11PM |
Registered: 7 years ago Posts: 369 |
rescue:~# nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0 mtd0: Read-only file system rescue:~# cd /tmp rescue:/tmp# nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00080000... rescue:/tmp# ls -l total 536 drwxr-xr-x 2 default default 40 Jan 1 1970 avahi-autoipd drwxr-xr-x 2 default default 80 Jan 1 1970 avahi-daemon -rw-r--r-- 1 root root 3 Jan 1 1970 ifplugd.eth0.pid -rw-r--r-- 1 root root 16 Jan 1 1970 ifstate -rw------- 1 root root 524288 Nov 21 04:08 mtd0 -rw-r--r-- 1 root root 61 Jan 1 1970 resolv.conf -rw------- 1 root root 0 Jan 1 1970 sshd -rw------- 1 root root 4 Jan 1 1970 sshd.pid -rw-r--r-- 1 root root 4 Jan 1 1970 udhcpc.eth0.pid -rw-r--r-- 1 root root 768 Jan 1 1970 utmp
Re: dockstar uboot upgrade: mtd0: Read-only file system after nanddump November 20, 2018 10:53PM |
Admin Registered: 13 years ago Posts: 18,821 |
cd /tmp/sda1 /usr/sbin/nanddump --noecc --omitoob -l 0x80000 -f mtd0.bin /dev/mtd0