Question about 2017.07 U-Boot Kirkwood for Dockstar December 18, 2017 01:04PM |
Registered: 13 years ago Posts: 37 |
root@nas:~/tmp# fw_setenv ethaddr '00:10:75:1A:DD:17' Can't overwrite "ethaddr"What can I do?
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 20, 2017 03:13AM |
Admin Registered: 13 years ago Posts: 19,010 |
> root@nas:~/tmp# fw_setenv ethaddr > '00:10:75:1A:DD:17' > Can't overwrite "ethaddr" >> What can I do?
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 20, 2017 01:00PM |
Registered: 13 years ago Posts: 37 |
root@nas:~# uname -a Linux nas 4.14.1-kirkwood-tld-1 #1 PREEMPT Wed Nov 22 23:38:14 PST 2017 armv5tel GNU/Linux root@nas:~# cat /boot/uEnv.txt ethaddr=00:10:75:1A:DD:17 dtb_file= ipaddr=192.168.178.107 serverip=192.168.178.4Still the same problem:
root@nas:~# fw_setenv ethaddr 00:10:75:1A:DD:17 Can't overwrite "ethaddr"Any tipps/ideas how to solve the problem?
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 21, 2017 02:51AM |
Admin Registered: 13 years ago Posts: 19,010 |
> root@nas:~# uname -a > Linux nas 4.14.1-kirkwood-tld-1 #1 PREEMPT Wed Nov > 22 23:38:14 PST 2017 armv5tel GNU/Linux > root@nas:~# cat /boot/uEnv.txt > ethaddr=00:10:75:1A:DD:17 > dtb_file= > ipaddr=192.168.178.107 > serverip=192.168.178.4 >> Still the same problem:
> root@nas:~# fw_setenv ethaddr 00:10:75:1A:DD:17 > Can't overwrite "ethaddr" >> Any tipps/ideas how to solve the problem?
dmesg cat /proc/mtd fw_printenv ls -l /boot/dts/kirkwood-dockstar*
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 21, 2017 12:22PM |
Registered: 13 years ago Posts: 37 |
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2017.12.21 19:17:45 =~=~=~=~=~=~=~=~=~=~=~= root@nas:~# dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.14.1-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18)) #1 PREEMPT Wed Nov 22 23:38:14 PST 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: Seagate FreeAgent Dockstar [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 32768 [ 0.000000] free_area_init_node: node 0, pgdat c0d9d13c, node_mem_map c7ef9000 [ 0.000000] Normal zone: 256 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 32768 pages, LIFO batch:7 [ 0.000000] random: fast init done [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 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: 109132K/131072K available (8192K kernel code, 714K rwdata, 2040K rodata, 1024K init, 285K bss, 21940K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0db2aec ( 715 kB) [ 0.000000] .bss : 0xc0db94b0 - 0xc0e00a4c ( 286 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns [ 0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns [ 0.000046] Switching to timer-based delay loop, resolution 5ns [ 0.000573] Console: colour dummy device 80x30 [ 0.000612] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000) [ 0.000637] pid_max: default: 32768 minimum: 301 [ 0.000820] Security Framework initialized [ 0.000973] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000996] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.001930] CPU: Testing write buffer coherency: ok [ 0.002967] Setting up static identity map for 0x100000 - 0x100058 [ 0.003234] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2 [ 0.003494] Hierarchical SRCU implementation. [ 0.006813] devtmpfs: initialized [ 0.010901] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.010929] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.011338] prandom: seed boundary self test passed [ 0.015544] prandom: 100 self tests passed [ 0.015556] pinctrl core: initialized pinctrl subsystem [ 0.016690] NET: Registered protocol family 16 [ 0.017170] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.018736] cpuidle: using governor ladder [ 0.018807] cpuidle: using governor menu [ 0.019283] Feroceon L2: Enabling L2 [ 0.019329] Feroceon L2: Cache support initialised. [ 0.019691] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.023907] No ATAGs? [ 0.031828] vgaarb: loaded [ 0.032150] SCSI subsystem initialized [ 0.032336] libata version 3.00 loaded. [ 0.032584] usbcore: registered new interface driver usbfs [ 0.032641] usbcore: registered new interface driver hub [ 0.032694] usbcore: registered new device driver usb [ 0.033660] clocksource: Switched to clocksource orion_clocksource [ 0.125044] VFS: Disk quotas dquot_6.6.0 [ 0.125131] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.134051] NET: Registered protocol family 2 [ 0.134837] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.134866] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.134888] TCP: Hash tables configured (established 1024 bind 1024) [ 0.134974] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.134999] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.135187] NET: Registered protocol family 1 [ 0.135616] RPC: Registered named UNIX socket transport module. [ 0.135630] RPC: Registered udp transport module. [ 0.135637] RPC: Registered tcp transport module. [ 0.135645] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.135658] PCI: CLS 0 bytes, default 32 [ 0.135904] Unpacking initramfs... [ 0.786171] Freeing initrd memory: 7376K [ 0.786328] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.787126] audit: initializing netlink subsys (disabled) [ 0.787563] Initialise system trusted keyrings [ 0.787623] Key type blacklist registered [ 0.787715] audit: type=2000 audit(0.780:1): state=initialized audit_enabled=0 res=1 [ 0.787793] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 0.787882] zbud: loaded [ 0.788806] NFS: Registering the id_resolver key type [ 0.788833] Key type id_resolver registered [ 0.788842] Key type id_legacy registered [ 0.788860] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.788870] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.789137] jffs2: version 2.2. (NAND) (SUMMARY) \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc. [ 0.789345] fuse init (API version 7.26) [ 0.789709] orangefs_debugfs_init: called with debug mask: :none: :0: [ 0.789894] orangefs_init: module version upstream loaded [ 0.789905] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 6.750200] Key type asymmetric registered [ 6.750218] Asymmetric key parser 'x509' registered [ 6.750286] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 6.750299] io scheduler noop registered [ 6.750307] io scheduler deadline registered [ 6.750399] io scheduler cfq registered (default) [ 6.751655] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 6.753527] mv_xor f1060800.xor: Marvell shared XOR driver [ 6.814449] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr ) [ 6.814698] mv_xor f1060900.xor: Marvell shared XOR driver [ 6.874448] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr ) [ 6.874886] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 6.876068] console [ttyS0] disabled [ 6.876136] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A [ 7.484758] console [ttyS0] enabled [ 7.494564] loop: module loaded [ 7.498564] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda [ 7.504991] nand: Micron MT29F2G08AAD [ 7.508675] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 7.516338] Scanning device for bad blocks [ 7.551250] Bad eraseblock 400 at 0x000003200000 [ 7.682610] 4 cmdlinepart partitions found on MTD device orion_nand [ 7.688925] Creating 4 MTD partitions on "orion_nand": [ 7.694109] 0x000000000000-0x000000100000 : "u-boot" [ 7.700038] 0x000000100000-0x000000500000 : "uImage" [ 7.705962] 0x000000500000-0x000002500000 : "rootfs" [ 7.712008] 0x000002500000-0x000010000000 : "data" [ 7.720184] libphy: Fixed MDIO Bus: probed [ 7.725057] libphy: orion_mdio_bus: probed [ 7.729198] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@0: Whitelisted compatible string. Please remove [ 7.746484] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 8.554286] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51 [ 8.563156] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 8.569770] ehci-pci: EHCI PCI platform driver [ 8.574302] ehci-orion: EHCI orion driver [ 8.578516] orion-ehci f1050000.ehci: EHCI Host Controller [ 8.584089] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 8.591938] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000 [ 8.623695] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 8.629973] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 8.636820] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 8.644099] usb usb1: Product: EHCI Host Controller [ 8.648998] usb usb1: Manufacturer: Linux 4.14.1-kirkwood-tld-1 ehci_hcd [ 8.655748] usb usb1: SerialNumber: f1050000.ehci [ 8.661071] hub 1-0:1.0: USB hub found [ 8.664942] hub 1-0:1.0: 1 port detected [ 8.669521] usbcore: registered new interface driver usb-storage [ 8.675927] mousedev: PS/2 mouse device common for all mice [ 9.033696] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 9.235444] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608 [ 9.242190] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 9.249397] usb 1-1: Product: USB2.0 Hub [ 9.254092] hub 1-1:1.0: USB hub found [ 9.258195] hub 1-1:1.0: 4 ports detected [ 9.583686] usb 1-1.3: new high-speed USB device number 3 using orion-ehci [ 9.734944] usb 1-1.3: New USB device found, idVendor=0781, idProduct=5583 [ 9.741863] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 9.749245] usb 1-1.3: Product: Ultra Fit [ 9.753273] usb 1-1.3: Manufacturer: SanDisk [ 9.757583] usb 1-1.3: SerialNumber: 4C531001570310122072 [ 9.763697] rtc-mv f1010300.rtc: internal RTC not ticking [ 9.769288] i2c /dev entries driver [ 9.773855] usb-storage 1-1.3:1.0: USB Mass Storage device detected [ 9.780691] hidraw: raw HID events driver (C) Jiri Kosina [ 9.786739] scsi host0: usb-storage 1-1.3:1.0 [ 9.791668] drop_monitor: Initializing network drop monitor service [ 9.798281] NET: Registered protocol family 17 [ 9.802827] Key type dns_resolver registered [ 9.807882] registered taskstats version 1 [ 9.811999] Loading compiled-in X.509 certificates [ 9.816901] zswap: loaded using pool lzo/zbud [ 9.848415] Key type big_key registered [ 9.864899] Key type encrypted registered [ 9.870211] hctosys: unable to open rtc device (rtc0) [ 9.878694] Freeing unused kernel memory: 1024K [ 9.954695] udevd[105]: starting version 175 [ 10.805044] scsi 0:0:0:0: Direct-Access SanDisk Ultra Fit 1.00 PQ: 0 ANSI: 6 [ 10.825011] sd 0:0:0:0: [sda] 60062500 512-byte logical blocks: (30.8 GB/28.6 GiB) [ 10.843430] sd 0:0:0:0: [sda] Write Protect is off [ 10.848766] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00 [ 10.849505] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 10.860595] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 10.875630] sda: sda1 [ 10.881244] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 20.701423] __nand_correct_data: uncorrectable ECC error [ 20.706864] print_req_error: I/O error, dev mtdblock0, sector 1920 [ 20.713335] __nand_correct_data: uncorrectable ECC error [ 20.718737] print_req_error: I/O error, dev mtdblock0, sector 2032 [ 20.725329] __nand_correct_data: uncorrectable ECC error [ 20.730668] __nand_correct_data: uncorrectable ECC error [ 20.736067] print_req_error: I/O error, dev mtdblock0, sector 2046 [ 20.767211] device-mapper: uevent: version 1.0.3 [ 20.774113] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com [ 20.842780] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem [ 20.865671] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) [ 21.768443] attempt to access beyond end of device [ 21.773293] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 21.779762] attempt to access beyond end of device [ 21.784688] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 21.792616] Buffer I/O error on dev sda1, logical block 7507808, async page read [ 21.804895] attempt to access beyond end of device [ 21.809783] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 21.816191] Buffer I/O error on dev sda1, logical block 7507808, async page read [ 22.284757] udevd[316]: starting version 175 [ 22.871406] marvell-cesa f1030000.crypto: CESA device successfully registered [ 23.075121] orion_wdt: Initial timeout 21 sec [ 23.475102] attempt to access beyond end of device [ 23.479934] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 23.486384] Buffer I/O error on dev sda1, logical block 7507808, async page read [ 23.494623] attempt to access beyond end of device [ 23.499438] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 23.505811] Buffer I/O error on dev sda1, logical block 7507808, async page read [ 24.399209] __nand_correct_data: uncorrectable ECC error [ 24.404693] print_req_error: I/O error, dev mtdblock0, sector 1920 [ 24.411166] __nand_correct_data: uncorrectable ECC error [ 24.416558] print_req_error: I/O error, dev mtdblock0, sector 2032 [ 24.423106] __nand_correct_data: uncorrectable ECC error [ 24.428497] __nand_correct_data: uncorrectable ECC error [ 24.433895] print_req_error: I/O error, dev mtdblock0, sector 2046 [ 24.552582] attempt to access beyond end of device [ 24.557558] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 24.564005] attempt to access beyond end of device [ 24.568823] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 24.575188] Buffer I/O error on dev sda1, logical block 7507808, async page read [ 24.586024] attempt to access beyond end of device [ 24.590859] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 24.597234] Buffer I/O error on dev sda1, logical block 7507808, async page read [ 24.694028] EXT4-fs (sda1): re-mounted. Opts: (null) [ 24.793247] attempt to access beyond end of device [ 24.798328] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 24.805841] Buffer I/O error on dev sda1, logical block 7507808, async page read [ 24.813904] attempt to access beyond end of device [ 24.818723] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 24.825083] Buffer I/O error on dev sda1, logical block 7507808, async page read [ 24.953231] attempt to access beyond end of device [ 24.973653] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 24.980143] Buffer I/O error on dev sda1, logical block 7507808, async page read [ 24.998079] attempt to access beyond end of device [ 25.002969] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 25.009510] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro [ 25.018999] Buffer I/O error on dev sda1, logical block 7507808, async page read [ 25.136368] random: crng init done [ 25.986290] attempt to access beyond end of device [ 25.991120] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 26.004247] attempt to access beyond end of device [ 26.009074] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 26.539668] attempt to access beyond end of device [ 26.558983] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 26.565966] attempt to access beyond end of device [ 26.570789] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 28.706977] Adding 262140k swap on /mnt/256MB.swap. Priority:-2 extents:131 across:944332k FS [ 28.764799] attempt to access beyond end of device [ 28.769843] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 28.777395] buffer_io_error: 4 callbacks suppressed [ 28.777405] Buffer I/O error on dev sda1, logical block 7507808, async page read [ 28.790511] attempt to access beyond end of device [ 28.795401] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 28.801697] Buffer I/O error on dev sda1, logical block 7507808, async page read [ 29.288466] attempt to access beyond end of device [ 29.293297] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 29.305625] Buffer I/O error on dev sda1, logical block 7507808, async page read [ 29.313641] attempt to access beyond end of device [ 29.318615] unknown-block(8,0): rw=0, want=60062504, limit=60062500 [ 29.325029] Buffer I/O error on dev sda1, logical block 7507808, async page read [ 30.534660] NET: Registered protocol family 10 [ 30.540276] Segment Routing with IPv6 [ 32.984293] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 35.613239] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 35.623165] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 48.560261] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0) root@nas:~# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00400000 00020000 "uImage" mtd2: 02000000 00020000 "rootfs" mtd3: 0db00000 00020000 "data" root@nas:~# fw_printenv 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=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 devices=usb ide mmc disks=0 1 2 3 ethact=egiga0 ethaddr=52:3b:20:9c:11:51 if_netconsole=ping $serverip led_error=orange blinking led_exit=green off led_init=green blinking load_dtb_addr=0x1c00000 load_initrd_addr=0x1100000 load_uimage_addr=0x800000 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage mainlineLinux=yes mtdids=nand0=orion_nand partition=nand0,2 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 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_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 uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi usb_ready_retry=15 arcNumber=2998 mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi preboot=run preboot_nc ipaddr=192.168.178.107 serverip=192.168.178.4 root@nas:~# ls -l /boot/dts/kirkwood-dockstar* -rw-r--r-- 1 root root 10180 Feb 6 2015 /boot/dts/kirkwood-dockstar.dtb root@nas:~#
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 21, 2017 11:21PM |
Admin Registered: 13 years ago Posts: 19,010 |
Quote
2. Extract the kernel and the DTB files in the archive:
cd /boot tar -xjf linux-4.14.1-kirkwood-tld-1-bodhi.tar.bz2 tar -xf linux-dtb-4.14.1-kirkwood-tld-1.tar
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 22, 2017 05:39AM |
Registered: 13 years ago Posts: 37 |
cp -a ~/zImage-4.14.1-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-dockstar.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n vmlinuz-4.14.1-kirkwood-tld-1 -d zImage.fdt uImage
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 22, 2017 02:09PM |
Admin Registered: 13 years ago Posts: 19,010 |
Quote
Installation:
Please use the same installation instruction in kernel 4.13.5-kirkwood-tld-1 (Updated 10 Oct 2017) below. Simply replace 4.13.5-kirkwood-tld-1 with 4.14.1-kirkwood-tld-1 in the instruction.
Quote
Installation:
1. Backup your current uImage and uInitrd. In the /boot directory, these are files for your current kernel (xx.xx.xx is the version number):
uInitrd
uImage
initrd.img-xx.xx.xx-kirkwood-xxx
System.map-xx.xx.xx-kirkwood-xxx
vmlinuz-xx.xx.xx-kirkwood-xxx
config-xx.xx.xx-kirkwood-xxx
dts/
2. Extract the kernel and the DTB files in the archive:
cd /boot
tar -xjf linux-4.8.0-kirkwood-tld-1-bodhi.tar.bz2
tar -xf linux-dtb-4.8.0-kirkwood-tld-1.tar
3. And install it with dpkg. Remove flash-kernel first to avoid potential problem (It is much better to generate uImage and uInitrd manually anyway):
cd /boot
apt-get remove flash-kernel
dpkg -i linux-image-4.8.0-kirkwood-tld-1_1.0_armel.deb
4. Create uImage and uInitrd and setup for booting.
I'm using the GoFlex Net booting with USB drive as an example here. Please replace its name (kirkwood-goflexnet.dtb) with the box you are installing on (for example, kirkwood-pogo_e02.dtb). Please look inside /boot/dts/ for the correct DTB file name for your box.
Below are the 2 different alternatives in booting (method 4b is required for booting with older U-Boot that does not support FDT).
- Choose option 4a if you are going to use the current rootfs for many different Kirkwood boxes, as is. It should boot most of the Kirkwood boxes. And with the latest U-Boot for Kirkwood that suports FDT. This is the preferred method.
- Choose option 4b if you only use the current rootfs for the box you're installing on, and don't want to modify u-boot envs. This method is required for booting with older U-Boot that does not support FDT. Note that if you are installing from stock OS, u-boot envs must be modified to boot with USB or HDD (please post questions, since each box has a different flavor in setting up the envs).
4a. Boot with DTB file (standard way to boot FDT kernel). Recommended.
- Generate the uImage and uInitrd.
cd /boot
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.8.0-kirkwood-tld-1 -d vmlinuz-4.8.0-kirkwood-tld-1 uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.8.0-kirkwood-tld-1 -d initrd.img-4.8.0-kirkwood-tld-1 uInitrd
- Set U-Boot envs for booting. The u-boot envs below are for 1st time upgrading, you don't need to do this step if you've installed the latest U-Boot for Kirkwood. Just make sure the DTB file is the correct one for your box, replace kirkwood-goflexnet.dtb below with the correct DTB name for your box.
fw_setenv load_dtb 'ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-goflexnet.dtb'
fw_setenv load_initrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'
fw_setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
fw_setenv usb_boot 'run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi'
4b. Boot with DTB file embedded in the kernel image (no U-Boot envs changes are needed if your system already booting on USB or HDD)
Again, please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box.
Generate the uImage and uInitrd:
cd /boot
mv uImage uImage.orig
cp -a zImage-4.8.0-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.8.0-kirkwood-tld-1 -d zImage.fdt uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.8.0-kirkwood-tld-1 -d initrd.img-4.8.0-kirkwood-tld-1 uInitrd
5. The new uImage and uInitrd files should be created in /boot directory now. You're ready to reboot the system:
sync
sync
sync
shutdown -r now
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 22, 2017 04:07PM |
Registered: 13 years ago Posts: 37 |
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).
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 23, 2017 04:20AM |
Admin Registered: 13 years ago Posts: 19,010 |
> 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). >>
Quote
Updated 25 Nov 2017:
Kernel linux-4.14.1-kirkwood-tld-1 package has been uploaded.
New/update in this version:
- Modified NSA3xx boxes DTS files to set system LED to green right after the kernel has booted.
Latest Linux kernel 4.x general release information can be found at:
LinuxChanges log
Download at Dropbox:
linux-4.14.1-kirkwood-tld-1-bodhi.tar.bz2
md5:
b2370e95e316d619dc3e075c04fb0cda
sha256:
33bb76dc0e1072d681ae68ce1a5e9952b434f4d1dac51baf412fa2c6cb8ec127
And remeber to check the hash of what you download, as always!
Installation:
Please use the same installation instruction in kernel 4.13.5-kirkwood-tld-1 (Updated 10 Oct 2017) below. Simply replace 4.13.5-kirkwood-tld-1 with 4.14.1-kirkwood-tld-1 in the instruction.
root@nas:~#
dpkg -l | grep -i linux-image
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 23, 2017 05:36AM |
Registered: 13 years ago Posts: 37 |
root@nas:~# dpkg -l | grep -i linux-image ii linux-image-3.17.0-kirkwood-tld-1 1 armel Linux kernel, version 3.17.0-kirkwood-tld-1 ii linux-image-4.14.1-kirkwood-tld-1 1.0 armel Linux kernel binary image for version 4.14.1-kirkwood-tld-1 root@nas:~#I installed your rootfs Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 on another usb stick and with that I was able to set ethaddr. Could it be that my Debian wheezy installation is somehow too old?
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 23, 2017 10:57AM |
Admin Registered: 13 years ago Posts: 19,010 |
root@nas:~# ls -l /boot/dts/kirkwood-dockstar* -rw-r--r-- 1 root root 10180 Feb 6 2015 /boot/dts/kirkwood-dockstar.dtb
Quote
2. Extract the kernel and the DTB files in the archive:
cd /boot
tar -xjf linux-4.4.1-kirkwood-tld-1-bodhi.tar.bz2
tar -xf linux-dtb-4.14.1-kirkwood-tld-1.tar
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 23, 2017 05:01PM |
Registered: 13 years ago Posts: 37 |
root@nas:~# fw_setenv ethaddr 00:10:75:1A:DD:17 Can't overwrite "ethaddr" root@nas:~# ll /boot/dts/*dock* -rw-r--r-- 1 root root 10404 Nov 24 06:46 /boot/dts/kirkwood-dockstar.dtb root@nas:~# uname -a Linux nas 4.14.1-kirkwood-tld-1 #1 PREEMPT Wed Nov 22 23:38:14 PST 2017 armv5tel GNU/LinuxIs there a way get "debug output" for the fw_setenv command?
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 23, 2017 11:14PM |
Registered: 7 years ago Posts: 373 |
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 24, 2017 05:14AM |
Admin Registered: 13 years ago Posts: 19,010 |
> root@nas:~# fw_setenv ethaddr 00:10:75:1A:DD:17 > Can't overwrite "ethaddr" > root@nas:~# ll /boot/dts/*dock* > -rw-r--r-- 1 root root 10404 Nov 24 06:46 > /boot/dts/kirkwood-dockstar.dtb > root@nas:~# uname -a > Linux nas 4.14.1-kirkwood-tld-1 #1 PREEMPT Wed Nov > 22 23:38:14 PST 2017 armv5tel GNU/Linux >> Is there a way get "debug output" for the
cat /proc/mtd fw_printenv
dmesg cat /proc/mtd fw_printenv
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 25, 2017 04:33AM |
Registered: 13 years ago Posts: 37 |
DockStar> setenv ethaddr 00:10:75:1A:D9:23 75s:et1eAnv: eDt9ha:dd23 r 00:10:DockStar>
DockStar> setenv ethaddr 00:10:75:1A:DD:17 setenv ethaddr 00:10:75:1A:DD:17 Warning: egiga0 MAC addresses don't match: Address in SROM is 00:10:75:1a:dd:17 Address in environment is 00:10:75:1a:d9:23 DockStar> printenv ethaddr printenv ethaddr ethaddr=00:10:75:1A:DD:17 DockStar> setenv ethaddr 00:10:75:1A:DD:17 setenv ethaddr 00:10:75:1A:DD:17 DockStar> setenv ethaddr 00:10:75:1A:D9:23
U-Boot 2017.07-tld-1 (Oct 24 2017 - 22:32:36 -0700) Seagate FreeAgent DockStar gcc (Debian 6.3.0-18) 6.3.0 20170516 GNU ld (GNU Binutils for Debian) 2.28 Hit any key to stop autoboot: 10 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... Use USB retry period from the environment: 15 second(s) 1 Storage Device(s) found Unknown command 'ide' - try 'help' Unknown command 'mmc' - try 'help' Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 32 60062468 6dc4ed62-01 0c ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 loading envs from usb 0 ... 113 bytes read in 445 ms (0 Bytes/s) Unknown command 'ide' - try 'help' Unknown command 'mmc' - try 'help' importing envs ... running scan_disk ... Scan device usb device usb 0:1 1 bytes read in 538 ms (0 Bytes/s) Found bootable drive on usb 0 loading uImage ... 3876600 bytes read in 754 ms (4.9 MiB/s) loading uInitrd ... 7551808 bytes read in 706 ms (10.2 MiB/s) loading DTB /boot/dts/kirkwood-dockstar.dtb ... 10404 bytes read in 1384 ms (6.8 KiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: vmlinuz-4.14.1-kirkwood-tld-1 Created: 2017-12-23 22:14:51 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3876536 Bytes = 3.7 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-4.14.1-kirkwood-tld-1 Created: 2017-12-23 22:14:55 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7551744 Bytes = 7.2 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 01c00000 Booting using the fdt blob at 0x1c00000 Starting kernel ...
root@nas:~# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00400000 00020000 "uImage" mtd2: 02000000 00020000 "rootfs" mtd3: 0db00000 00020000 "data" root@nas:~#
root@nas:~# fw_printenv 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=10 bootdev=usb device=0:1 devices=usb ide mmc disks=0 1 2 3 ethact=egiga0 if_netconsole=ping $serverip led_error=orange blinking led_exit=green off led_init=green blinking load_dtb_addr=0x1c00000 load_initrd_addr=0x1100000 load_uimage_addr=0x800000 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage mainlineLinux=yes mtdids=nand0=orion_nand partition=nand0,2 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 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_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 uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi usb_ready_retry=15 arcNumber=2998 mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) serverip=192.168.178.4 ipaddr=192.168.178.107 preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi preboot=run preboot_nc set_bootargs_rescue=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts bootcmd_rescue=run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000 rescue_installed=1 bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_rescue dtb_file=/boot/dts/kirkwood-dockstar.dtb ethaddr=00:10:75:1A:D9:23 root@nas:~#
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 25, 2017 05:13AM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 25, 2017 05:34AM |
Registered: 13 years ago Posts: 37 |
root@nas:~# ll /boot/dts/*dock* -rw-r--r-- 1 root root 10404 Nov 24 06:46 /boot/dts/kirkwood-dockstar.dtb root@nas:~#and as console output says it will be used:
loading DTB /boot/dts/kirkwood-dockstar.dtb ...And I cannot change it:
root@nas:~# fw_setenv ethaddr 00:10:75:1A:DD:17 Can't overwrite "ethaddr"
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 25, 2017 06:32AM |
Admin Registered: 13 years ago Posts: 19,010 |
cat /proc/mtd fw_printenv
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 25, 2017 10:33AM |
Registered: 13 years ago Posts: 37 |
root@nas:~# strace fw_setenv ethaddr 00:10:75:1A:DD:17 execve("/usr/bin/fw_setenv", ["fw_setenv", "ethaddr", "00:10:75:1A:DD:17"], [/* 14 vars */]) = 0 brk(0) = 0x8a1000 uname({sys="Linux", node="nas", ...}) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fd0000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=19294, ...}) = 0 mmap2(NULL, 19294, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb6fcb000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/arm-linux-gnueabi/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0XX\1\0004\0\0\0"..., 512) = 512 lseek(3, 1243932, SEEK_SET) = 1243932 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1400) = 1400 lseek(3, 1243492, SEEK_SET) = 1243492 read(3, "A'\0\0\0aeabi\0\1\35\0\0\0\0054T\0\6\2\10\1\t\1\22\4\24\1\25\1"..., 40) = 40 fstat64(3, {st_mode=S_IFREG|0755, st_size=1245332, ...}) = 0 mmap2(NULL, 1287448, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb6e71000 mprotect(0xb6f9e000, 32768, PROT_NONE) = 0 mmap2(0xb6fa6000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12d) = 0xb6fa6000 mmap2(0xb6fa9000, 9496, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6fa9000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fca000 set_tls(0xb6fca6d0, 0xb6fcada7, 0xb6fcada8, 0xb6fca6d0, 0xb6fd2000) = 0 mprotect(0xb6fa6000, 8192, PROT_READ) = 0 mprotect(0xb6fd1000, 4096, PROT_READ) = 0 munmap(0xb6fcb000, 19294) = 0 brk(0) = 0x8a1000 brk(0x8c2000) = 0x8c2000 open("/etc/fw_env.config", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=112, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fcf000 read(3, "# MTD device name\tDevice offset\t"..., 4096) = 112 read(3, "", 4096) = 0 close(3) = 0 munmap(0xb6fcf000, 4096) = 0 stat64("/dev/mtd0", {st_mode=S_IFCHR|0600, st_rdev=makedev(90, 0), ...}) = 0 open("/dev/mtd0", O_RDONLY) = 3 ioctl(3, MCE_GET_RECORD_LEN or MTRRIOC_SET_ENTRY, 0xbea8da98) = 0 ioctl(3, 0x40084d0b, 0xbea8da38) = 0 lseek(3, 786432, SEEK_SET) = 786432 read(3, "\333\202\212\340bootcmd_exec=run load_uimage"..., 131072) = 131072 close(3) = 0 write(2, "Can't overwrite \"ethaddr\"\n", 26Can't overwrite "ethaddr" ) = 26 open("/dev/mtd0", O_RDWR) = 3 ioctl(3, 0x40084d0b, 0xbea8dbf0) = 0 ioctl(3, MTRRIOC_SET_PAGE_ENTRY, 0xbea8dbf8) = -1 EOPNOTSUPP (Operation not supported) ioctl(3, MCE_GET_LOG_LEN or MTRRIOC_DEL_ENTRY, 0xbea8dbf8) = 0 lseek(3, 786432, SEEK_SET) = 786432 write(3, "\333\202\212\340bootcmd_exec=run load_uimage"..., 131072) = 131072 ioctl(3, MTRRIOC_ADD_PAGE_ENTRY, 0xbea8dbf8) = -1 EOPNOTSUPP (Operation not supported) close(3) = 0 exit_group(0) = ?
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 25, 2017 11:47AM |
Admin Registered: 13 years ago Posts: 19,010 |
dmesg cat /proc/mtd fw_printenv
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 25, 2017 12:20PM |
Registered: 7 years ago Posts: 373 |
... flash new uboot, environment image, set nc, etc... root@Pro02:~/newuboot# fw_setenv ethaddr '00:25:31:00:ff:af' Can't overwrite "ethaddr" root@Pro02:~/newuboot# fw_setenv ethaddr '00:25:31:00:ff:af' Can't overwrite "ethaddr" root@Pro02:~/newuboot# wget --no-check-certificate https://bitly.com/1RdYW8S --2017-12-25 12:09:17-- https://bitly.com/1RdYW8S Resolving bitly.com (bitly.com)... 67.199.248.14, 67.199.248.15 Connecting to bitly.com (bitly.com)|67.199.248.14|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://www.dropbox.com/s/hc7f4et56hyufpf/linux-tools-installation-bodhi.tar.gz [following] --2017-12-25 12:09:23-- https://www.dropbox.com/s/hc7f4et56hyufpf/linux-tools-installation-bodhi.tar.gz Resolving www.dropbox.com (www.dropbox.com)... 162.125.8.1, 2620:100:601b:1::a27d:801 Connecting to www.dropbox.com (www.dropbox.com)|162.125.8.1|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://dl.dropboxusercontent.com/content_link/fXHRA19pRHmc7VfhVhBt5Ecqu4mhNPvoVDI3LVvn9dUv8M6tmc8AnvG9WFd1Mk64/file [following] --2017-12-25 12:09:28-- https://dl.dropboxusercontent.com/content_link/fXHRA19pRHmc7VfhVhBt5Ecqu4mhNPvoVDI3LVvn9dUv8M6tmc8AnvG9WFd1Mk64/file Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 162.125.8.6, 2620:100:601b:6::a27d:806 Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|162.125.8.6|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1617088 (1.5M) [application/octet-stream] Saving to: `1RdYW8S' 100%[======================================>] 1,617,088 2.58M/s in 0.6s 2017-12-25 12:09:33 (2.58 MB/s) - `1RdYW8S' saved [1617088/1617088] root@Pro02:~/newuboot# ls . uboot.2015.10-tld-2.ox820.bodhi.tar .. uboot.2015.10-tld-2.ox820.bodhi.tar.bak 1RdYW8S uboot.2015.10-tld-2.ox820.environment current.env uboot.2015.10-tld-2.ox820.environment.img current_envs.txt uboot.2015.10-tld-2.ox820.mtd0.img mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img root@Pro02:~/newuboot# tar xvf 1RdYW8S tools/ tools/busybox tools/e2fsck tools/nanddump tools/fw_printenv tools/flash_erase tools/nandwrite tools/fw_env.config root@Pro02:~/newuboot# cd tools root@Pro02:~/newuboot/tools# ls . busybox flash_erase fw_printenv nandwrite .. e2fsck fw_env.config nanddump root@Pro02:~/newuboot/tools# cp fw_printenv fw_setenv root@Pro02:~/newuboot/tools# ./fw_setenv ethaddr '00:25:31:00:ff:af' root@Pro02:~/newuboot/tools# uname -a Linux Pro02 3.17.0-oxnas-tld-1 #1 SMP PREEMPT Sat Oct 25 15:59:43 PDT 2014 armv6l GNU/Linux root@Pro02:~/newuboot/tools# fw_printenv |grep ethaddr ethaddr=00:25:31:00:ff:af root@Pro02:~/newuboot/tools#
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 25, 2017 02:31PM |
Registered: 13 years ago Posts: 37 |
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 25, 2017 06:40PM |
Registered: 7 years ago Posts: 373 |
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 25, 2017 11:46PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: Question about 2017.07 U-Boot Kirkwood for Dockstar December 26, 2017 07:25AM |
Registered: 13 years ago Posts: 37 |