GoflexNet with corrupted init.d/rcS can't boot fully October 29, 2018 01:07PM |
Registered: 6 years ago Posts: 20 |
Re: GoflexNet with corrupted init.d/rcS can't boot fully October 29, 2018 04:18PM |
Admin Registered: 13 years ago Posts: 19,107 |
4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time). Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name). Generate the uImage with DTB embedded inside: cd /media/sdb1/boot cp -a zImage-4.12.1-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-goflexnet.dtb >> zImage.fdt mv uImage uImage.orig mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt uImage sync
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 01, 2018 08:04PM |
Registered: 6 years ago Posts: 20 |
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 01, 2018 08:11PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 01, 2018 08:42PM |
Registered: 6 years ago Posts: 20 |
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 01, 2018 10:01PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 03, 2018 08:41PM |
Registered: 6 years ago Posts: 20 |
drwxr-xr-x 2 root root 4096 Nov 4 01:12 bin drwxr-xr-x 3 root root 4096 Nov 4 01:12 boot drwxr-xr-x 5 root root 4096 Nov 4 01:05 dev drwxr-xr-x 57 root root 4096 Nov 4 01:13 etc drwxr-xr-x 2 root root 4096 Jan 22 2012 home drwxr-xr-x 14 root root 4096 Nov 4 01:18 lib drwx------ 2 root root 16384 Feb 24 2012 lost+found drwxr-xr-x 2 root root 4096 Feb 24 2012 media drwxr-xr-x 2 root root 4096 Feb 10 2015 mnt drwxr-xr-x 2 root root 4096 Feb 24 2012 opt drwxr-xr-x 2 root root 4096 Jan 22 2012 proc drwx------ 5 root root 4096 Nov 4 01:05 root drwxr-xr-x 2 root root 4096 Feb 8 2013 run drwxr-xr-x 2 root root 4096 Nov 4 01:05 sbin drwxr-xr-x 2 root root 4096 Feb 24 2012 srv drwxr-xr-x 2 root root 4096 Jan 1 2011 sys drwxrwxrwt 2 root root 4096 Nov 4 01:13 tmp drwxr-xr-x 10 root root 4096 Nov 4 01:11 usr drwxr-xr-x 11 root root 4096 Nov 4 01:13 var
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 03, 2018 09:28PM |
Admin Registered: 13 years ago Posts: 19,107 |
/media/sdb1/usr/bin/mkimage
Quote
https://forum.doozan.com/read.php?3,12381
A. Flashing Instruction:
Installation is the same for each u-Boot image, the instruction below is written to include all boxes. So choose the platform name that you are installing for, and copy/paste the appropriate commands.
If you are running kernel that do not provide mtd-utils and uboot-tools (fw_setenv, fw_printenv, flash_erase, nandwrite), you can download the NAND and U-Boot tools binaries here in this thread.
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 04, 2018 04:16PM |
Registered: 6 years ago Posts: 20 |
Quote
The rootfs Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 has this command already (it is a full Debian system). So if the native environment does not have the command, you can always execute it directly. Assumming the rootfs USB drive is mounted at /media/sdb1,
you can run it so: /media/sdb1/usr/bin/mkimage
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 04, 2018 04:38PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 04, 2018 05:58PM |
Registered: 6 years ago Posts: 20 |
U-Boot 1.1.4 Cloud Engines 1.1.2 (3.4.22) SATA PHYADDR=0 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 00691750 Soc: 88F6281 A0 (DDR2) CPU running @ 1200Mhz L2 running @ 400Mhz SysClock = 400Mhz , TClock = 200Mhz DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB 16bit width Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:256 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) CLOUD ENGINES BOARD: DISCOVERY:0.1 Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 NAND read: device 0 offset 0x100000, size 0x300000 Reading data from 0x3ff800 -- 100% complete. 3145728 bytes read: OK # Booting image at 00800000 ... Image Name: Linux-2.6.22.18 Created: 2010-10-19 23:05:02 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1979140 Bytes = 1.9 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK Starting kernel ... Uncompressing Linux............................................................................................................................ done, booting the kernel. [ 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=00053977 [ 0.000000] Machine: Feroceon-KW [ 0.000000] Using UBoot passing parameters structure [ 0.000000] CE: Received CE uboot parameters: [ 0.000000] CE: BOARDID: DISCOVERY:0.1 [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 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.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.880000] 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.910000] RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize [ 0.910000] Loading Marvell Ethernet Driver: [ 0.920000] o Cached descriptors in DRAM [ 0.920000] o DRAM SW cache-coherency [ 0.930000] o Single RX Queue support - ETH_DEF_RXQ=0 [ 0.930000] o Single TX Queue support - ETH_DEF_TXQ=0 [ 0.940000] o TCP segmentation offload enabled [ 0.940000] o Receive checksum offload enabled [ 0.950000] o Transmit checksum offload enabled [ 0.950000] o Network Fast Processing (Routing) supported [ 0.960000] o Driver ERROR statistics enabled [ 0.960000] o Driver INFO statistics enabled [ 0.970000] o Proc tool API enabled [ 0.970000] o Rx descripors: q0=128 [ 0.970000] o Tx descripors: q0=532 [ 0.980000] o Loading network interface(s): [ 0.980000] o eth0, ifindex = 1, GbE port = 0 [ 0.990000] [ 0.990000] Warning: Giga 1 is Powered Off [ 0.990000] [ 0.990000] mvFpRuleDb (c7f15000): 1024 entries, 4096 bytes [ 1.000000] Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI [ 1.010000] Copyright (c) 1999-2006 Intel Corporation. [ 1.010000] e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI [ 1.020000] e100: Copyright(c) 1999-2006 Intel Corporation [ 1.020000] Integrated Sata device found [ 1.050000] scsi0 : Marvell SCSI to SATA adapter [ 1.050000] scsi1 : Marvell SCSI to SATA adapter [ 1.060000] NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $ [ 1.070000] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit) [ 1.080000] Scanning device for bad blocks [ 1.150000] Bad eraseblock 1592 at 0x0c700000 [ 1.170000] Using static partition definition [ 1.180000] Creating 4 MTD partitions on "nand_mtd": [ 1.180000] 0x00000000-0x00100000 : "u-boot" [ 1.190000] 0x00100000-0x00500000 : "uImage" [ 1.190000] 0x00500000-0x02500000 : "root" [ 1.200000] 0x02500000-0x10000000 : "data" [ 1.200000] ehci_marvell ehci_marvell.70059: Marvell Orion EHCI [ 1.210000] ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1 [ 1.240000] ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100 [ 1.260000] ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 [ 1.260000] usb usb1: configuration #1 chosen from 1 choice [ 1.270000] hub 1-0:1.0: USB hub found [ 1.270000] hub 1-0:1.0: 1 port detected [ 1.390000] USB Universal Host Controller Interface driver v3.0 [ 1.670000] usb 1-1: new high speed USB device using ehci_marvell and address 2 [ 1.820000] usb 1-1: configuration #1 chosen from 1 choice [ 1.820000] usbcore: registered new interface driver usblp [ 1.830000] drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver [ 1.840000] Initializing USB Mass Storage driver... [ 1.840000] scsi2 : SCSI emulation for USB Mass Storage devices [ 1.850000] usbcore: registered new interface driver usb-storage [ 1.850000] USB Mass Storage support registered. [ 1.860000] mice: PS/2 mouse device common for all mice [ 1.860000] i2c /dev entries driver [ 1.870000] Linux telephony interface: v1.00 [ 1.870000] md: linear personality registered for level -1 [ 1.880000] md: raid0 personality registered for level 0 [ 1.880000] md: raid1 personality registered for level 1 [ 2.060000] raid6: int32x1 98 MB/s [ 2.230000] raid6: int32x2 114 MB/s [ 2.400000] raid6: int32x4 122 MB/s [ 2.570000] raid6: int32x8 110 MB/s [ 2.570000] raid6: using algorithm int32x4 (122 MB/s) [ 2.570000] md: raid6 personality registered for level 6 [ 2.580000] md: raid5 personality registered for level 5 [ 2.580000] md: raid4 personality registered for level 4 [ 2.590000] raid5: measuring checksumming speed [ 2.640000] arm4regs : 1084.400 MB/sec [ 2.690000] 8regs : 754.800 MB/sec [ 2.740000] 32regs : 900.000 MB/sec [ 2.740000] raid5: using function: arm4regs (1084.400 MB/sec) [ 2.750000] device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com [ 2.750000] dm_crypt using the OCF package. [ 2.760000] sdhci: Secure Digital Host Controller Interface driver [ 2.760000] sdhci: Copyright(c) Pierre Ossman [ 2.770000] usbcore: registered new interface driver usbhid [ 2.770000] drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver [ 2.780000] TCP cubic registered [ 2.780000] NET: Registered protocol family 1 [ 2.790000] NET: Registered protocol family 17 [ 2.790000] md: Autodetecting RAID arrays. [ 2.800000] md: autorun ... [ 2.800000] md: ... autorun DONE. [ 4.620000] Empty flash at 0x00e54e48 ends at 0x00e55000 [ 7.810000] VFS: Mounted root (jffs2 filesystem) readonly. [ 7.820000] Freeing init memory: 124K [ 7.830000] scsi 2:0:0:0: Direct-Access Lexar microSD RDR 0815 PQ: 0 ANSI: 6 [ 8.470000] sd 2:0:0:0: [sda] 3866624 512-byte hardware sectors (1980 MB) [ 8.480000] sd 2:0:0:0: [sda] Write Protect is off [ 8.480000] sd 2:0:0:0: [sda] Assuming drive cache: write through [ 8.660000] sd 2:0:0:0: [sda] 3866624 512-byte hardware sectors (1980 MB) [ 8.730000] sd 2:0:0:0: [sda] Write Protect is off [ 8.740000] sd 2:0:0:0: [sda] Assuming drive cache: write through [ 8.740000] sda: sda1 [ 8.840000] sd 2:0:0:0: [sda] Attached SCSI removable disk [ 8.840000] sd 2:0:0:0: Attached scsi generic sg0 type 0 init started: BusyBox v1.7.0 (2008-02-26 19:25:17 IST) starting pid 280, tty '': '/etc/init.d/rcS'
baudrate=115200 loads_echo=0 ipaddr=169.254.254.253 serverip=169.254.254.254 rootpath=/mnt/ARM_FS/ netmask=255.255.0.0 run_diag=yes console=console=ttyS0,115200 CASset=min MALLOC_len=1 ethprime=egiga0 bootargs_root=root=/dev/mtdblock2 ro ethmtu=1500 usb0Mode=host nandEcc=1bit ethact=egiga0 ethaddr=00:10:75:26:24:C3 cesvcid=ZL9SNCS63FCEP79LLKNGRK5FKE ceserialno=NA1Y08M6 ceboardver=DISCOVERY:0.1 bootcmd=nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000 stdin=serial stdout=serial stderr=serial nandEnvBase=a0000 mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no bootdelay=3 disaMvPnp=no pcieTune=no Environment size: 793/131068 bytes
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 04, 2018 09:05PM |
Registered: 6 years ago Posts: 125 |
setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000' boot
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 05, 2018 12:13AM |
Admin Registered: 13 years ago Posts: 19,107 |
Quote
Aha. Figured out the error msg. I had untarred the PogoPro rootfs into a subdir on another USB flash drive. When I tried to run mkimage from that mounted USB subdir, I got Permission Denied, even though the file execute bit was set. I found some comments online that perhaps the mounted filesystem needed a sudo or something. I then copied the mkimage executable to the PogoPro /usr/bin dir and voila, it runs and produces the new image in the boot dir of the USB flash drive I've been preparing to boot on my GoFlexNet box.
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 05, 2018 02:30PM |
Registered: 6 years ago Posts: 20 |
setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000' boot
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 05, 2018 02:58PM |
Registered: 6 years ago Posts: 125 |
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 05, 2018 04:04PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 11, 2018 06:18PM |
Registered: 6 years ago Posts: 20 |
rootpath=/mnt/ARM_FS/ bootargs_root=root=/dev/mtdblock2 ro bootcmd=nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000
load_uimage=ext2load usb 0:1 0x800000 boot/uImage load_initrd=ext2load usb 0:1 0x1100000 /boot/uInitrd load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-goflexnet.dtb usb_boot=usb start; run load_uimage; run load_initrd; run load_dtb; bootm 0x800000 0x1100000 0x1c00000;
CE>> run usb_boot Unknown command 'usb' - try 'help' ** Block device usb 0 not supported ** Block device usb 0 not supported ** Block device usb 0 not supported ## Booting image at 00800000 ... Image Name: Linux-2.6.22.18 Created: 2010-10-19 23:05:02 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1979140 Bytes = 1.9 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 01100000 ... Bad Magic Number U-Boot 1.1.4 Cloud Engines 1.1.2 (3.4.22) SATA PHYADDR=0
CE>> run load_uimage=ext2load usb 0:1 0x800000 boot/uImage ** Block device usb 0 not supported CE>> run load_initrd=ext2load usb 0:1 0x1100000 /boot/uInitrd ** Block device usb 0 not supported CE>> run load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-goflexnet.dtb ** Block device usb 0 not supported
baudrate=115200 loads_echo=0 ipaddr=169.254.254.253 serverip=169.254.254.254 rootpath=/mnt/ARM_FS/ netmask=255.255.0.0 run_diag=yes console=console=ttyS0,115200 CASset=min MALLOC_len=1 ethprime=egiga0 ethmtu=1500 usb0Mode=host nandEcc=1bit ethact=egiga0 ethaddr=00:10:75:26:24:C3 cesvcid=ZL9SNCS63FCEP79LLKNGRK5FKE ceserialno=NA1Y08M6 ceboardver=DISCOVERY:0.1 bootcmd=nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000 load_uimage=ext2load usb 0:1 0x800000 boot/uImage load_initrd=ext2load usb 0:1 0x1100000 /boot/uInitrd load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-goflexnet.dtb arcNumber=9 usb_boot=usb start; run load_uimage; run load_initrd; run load_dtb; bootm 0x800000 0x1100000 0x1c00000; bootargs_root_bak=root=/dev/mtdblock2 ro bootargs_root=root=LABEL=rootfs stdin=serial stdout=serial stderr=serial nandEnvBase=a0000 mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no bootdelay=3 disaMvPnp=no pcieTune=no
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 NAND read: device 0 offset 0x100000, size 0x300000 Reading data from 0x3ff800 -- 100% complete. 3145728 bytes read: OK ## Booting image at 00800000 ... Image Name: Linux-2.6.22.18 Created: 2010-10-19 23:05:02 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1979140 Bytes = 1.9 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK Starting kernel ... Uncompressing Linux............................................................................................................................ done, booting the kernel. [ 0.000000] Linux version 2.6.22.18 (bdietrich@buildman) (gcc version 4.2.1) #81 Tue Oct 19 16:05:00 PDT 2010 (This puts things into a kernel panic loop of rebooting and panic.
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 11, 2018 11:38PM |
Admin Registered: 13 years ago Posts: 19,107 |
run load_uimage run load_initrd
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 12, 2018 02:58PM |
Registered: 6 years ago Posts: 20 |
printenv gives: load_uimage=ext2load usb 0:1 0x800000 boot/uImage load_initrd=ext2load usb 0:1 0x1100000 /boot/uInitrd manual run of these env vars gives: CE>> run load_uimage ** Block device usb 0 not supported CE>> run load_initrd ** Block device usb 0 not supported
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 12, 2018 03:46PM |
Admin Registered: 13 years ago Posts: 19,107 |
usb start
run load_uimage
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 12, 2018 04:14PM |
Registered: 6 years ago Posts: 20 |
CE>> usb start Unknown command 'usb' - try 'help' CE>> run usb start ## Error: "usb" not defined
[ 1.180000] Creating 4 MTD partitions on "nand_mtd": [ 1.180000] 0x00000000-0x00100000 : "u-boot" [ 1.190000] 0x00100000-0x00500000 : "uImage" [ 1.190000] 0x00500000-0x02500000 : "root" [ 1.200000] 0x02500000-0x10000000 : "data" [ 1.200000] ehci_marvell ehci_marvell.70059: Marvell Orion EHCI [ 1.210000] ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1 [ 1.240000] ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100 [ 1.260000] ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 [ 1.260000] usb usb1: configuration #1 chosen from 1 choice [ 1.270000] hub 1-0:1.0: USB hub found [ 1.270000] hub 1-0:1.0: 1 port detected [ 1.390000] USB Universal Host Controller Interface driver v3.0 [ 1.670000] usb 1-1: new high speed USB device using ehci_marvell and address 2 [ 1.820000] usb 1-1: configuration #1 chosen from 1 choice [ 1.820000] usbcore: registered new interface driver usblp [ 1.830000] drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver [ 1.840000] Initializing USB Mass Storage driver... [ 1.840000] scsi2 : SCSI emulation for USB Mass Storage devices [ 1.850000] usbcore: registered new interface driver usb-storage [ 1.850000] USB Mass Storage support registered.
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 12, 2018 04:24PM |
Admin Registered: 13 years ago Posts: 19,107 |
help
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 12, 2018 09:44PM |
Registered: 6 years ago Posts: 20 |
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 12, 2018 10:10PM |
Admin Registered: 13 years ago Posts: 19,107 |
0x800000 uImage 0x2100000 uInitrd
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 13, 2018 01:09PM |
Registered: 6 years ago Posts: 20 |
tftp 0x800000 uImage tftp 0x1100000 uInitrd tftp 0x1c00000 kirkwood-goflexnet.dtb
CE>> bootm 0x800000 0x1100000 0x1c00000 ## Booting image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2017-07-20 8:11:24 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3821528 Bytes = 3.6 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 01100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2017-07-24 0:18:23 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7245632 Bytes = 6.9 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Error: unrecognized/unsupported machine ID (r1 = 0x0000020f). Available machine support: ID (hex) NAME ffffffff Generic DT based system ffffffff Marvell Kirkwood (Flattened Device Tree) Please check your kernel config and/or bootloader.
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 13, 2018 05:02PM |
Admin Registered: 13 years ago Posts: 19,107 |
Quote
https://forum.doozan.com/read.php?2,12096,12096#msg-12096
Updated 24 Jul 2017:
Basic Debian stretch Kirkwood rootfs for most Kirwood plugs:
- tarball size: 188M
- install size: 488M
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, and sysvinit-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root
Download at Dropbox:
Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
md5:
bf3d29569943875df348fb5ca03b348c
sha256:
4ed5714fdb123cdb40e973f3d0754e91cd199b75a9874018f2b5dc9cfa8ae8bb
And remember to check the hash of what you download, as always.
Installation:
Installation can be done on any Linux box, with a fresh USB drive (SD card or HDD would work fine too).
Note: all steps below must be done while logging in as root user (not sudo). If you are not the root user then don't continue, because the rootfs will not work.
1. Format a new USB drive with a single Ext3 partition, and label it rootfs. If you are running the latest U-Boot for Kirkwood then you can use Ext4.
2. Mount the drive on a Linux box. cd to top level directory and extract it. It is assuming the USB drive is mounted at /media/sdb1
cd /media/sdb1
tar -xjf Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
3. Adjust fstab (optional).
Edit /media/sdb1/etc/fstab entry for root device to match the rootfstype of your rootfstype if you use Ext4 or Ext2. However, you can keep it as is without problem in booting since the kernel will figure out which file system the rootfs was formatted.
LABEL=rootfs / ext3 noatime,errors=remount-ro 0 1
4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).
Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).
Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-4.12.1-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt uImage
sync
If your Linux box does not have mkimage, then install it
apt-get install u-boot-tools
5. Done. Take this USB rootfs to your plug and cold start. After booted into Debian, see Note1 and Note2 below. It is very important that you do Note1 steps to secure your box.
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 13, 2018 07:40PM |
Registered: 6 years ago Posts: 20 |
[ 6.624641] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 6.632254] Scanning device for bad blocks [ 6.806721] Bad eraseblock 1592 at 0x00000c700000 [ 6.860142] 4 ofpart partitions found on MTD device orion_nand [ 6.866042] Creating 4 MTD partitions on "orion_nand": [ 6.871229] 0x000000000000-0x000000100000 : "u-boot" [ 6.877520] 0x000000100000-0x000000500000 : "uImage" [ 6.883877] 0x000000500000-0x000002500000 : "pogoplug" [ 6.890544] 0x000002500000-0x00000fd00000 : "root"
root@debian:~# mount /dev/sda1 on / type ext4 (rw,noatime,block_validity,delalloc,barrier,user_xattracl,errors=remount-ro) devtmpfs on /dev type devtmpfs (rw,relatime,size=58248k,nr_inodes=14562,mode=75) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=11752k,mode=755) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=23500k) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmoe=000) tmpfs on /tmp type tmpfs (rw,relatime) rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
/dev/mtdblock0 /dev/mtdblock1 /dev/mtdblock2 /dev/mtdblock3
0x000000000000-0x000000100000 : "u-boot" [The new uboot I installed over tftp] 0x000000100000-0x000000500000 : "uImage" [Original GoFlexNet kernel] 0x000000500000-0x000002500000 : "pogoplug" [Original GoFlexNet pogo-specific code] 0x000002500000-0x00000fd00000 : "root" [Original ro root filesystem that should contain init.d/rcS] [[/code] Do I need to fix up /etc/fstab or just use a mount cmd?# /etc/fstab: static file system information. # <file system> <mount point> <type> <options> <dump> <pass> LABEL=rootfs / ext2 noatime,errors=remount-ro 0 1 tmpfs /tmp tmpfs defaults 0 0
I don't remember the output of the mount cmd on the original GoFlexNet, and am kinda lost on how to run mount to put the old filesystem on something like /oldfs. Suggestions as to 'type' and 'file system' args to mount?
TIA Jerry
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 13, 2018 08:59PM |
Admin Registered: 13 years ago Posts: 19,107 |
ver printenv
> /dev/mtdblock0 /dev/mtdblock1 /dev/mtdblock2 > /dev/mtdblock3 >>
cat /proc/mtd
mkdir -p /tmp/gfnroot/ mknod /dev/mtdblock3 b 31 2 mount -t jffs2 /dev/mtdblock2 /tmp/gfnroot/
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 14, 2018 03:04PM |
Registered: 6 years ago Posts: 20 |
root@debian:/# mknod /dev/mtdblock2 b 31 2 mknod: /dev/mtdblock2: File exists root@debian:/# mount -t jffs2 /dev/mtdblock3 /tmp/gfnroot [63444.734338] jffs2: notice: (3459) jffs2_build_xattr_subsystem: complete xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead,) found.
uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
CASset=min MALLOC_len=1 arcNumber=3089 baudrate=115200 bootargs_root=root=/dev/mtdblock2 ro bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=4 bootdev=usb ceboardver=DISCOVERY:0.1 ceserialno=NA1Y08M6 cesvcid=ZL9SNCS63FCEP79LLKNGRK5FKE console=console=ttyS0,115200 device=0:1 devices=usb ide disks=0 1 2 3 dtb_file=/boot/dts/kirkwood-goflexnet.dtb ethact=egiga0 ethaddr=52:3b:20:9c:11:51 ethmtu=1500 ethprime=egiga0 if_netconsole=ping $serverip init_ide=ide reset init_mmc=mmc rescan init_usb=usb start ipaddr=192.168.0.14 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_dtb_addr=0x1c00000 load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_initrd_addr=0x1100000 load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage load_uimage_addr=0x800000 loads_echo=0 mainlineLinux=yes mtddevname=rootfs mtddevnum=2 mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) nandEnvBase=a0000 partition=nand0,2 preboot_nc=run if_netconsole start_netconsole rootpath=/mnt/ARM_FS/ run_diag=yes scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=192.168.0.6 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_loaded=0 uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb0Mode=host usb_ready_retry=15 Environment size: 3283/131068 bytes
Re: GoflexNet with corrupted init.d/rcS can't boot fully November 14, 2018 06:39PM |
Registered: 6 years ago Posts: 125 |