Pogo e02 only Netconsole access

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Pogo e02 only Netconsole access

Postby elsurubi » Mon Feb 06, 2017 12:27 pm

Hello all, and firts, sorry for my english

I have a Pogoplug E02 device running perfect for 2 or more years,(Archlinux installed) suddenly, in a very clever move from my ingenius brain, decide to update uBoot

Pacman uboot-pogo_e02

Why you ask? well, for take advantage from the rescue system, etc etc

Now, the device is not booting, but after read and read, (my knowlege of linux is pathetic) have netconsole running:

$this->bbcode_second_pass_code('', 'U-Boot 2016.09.01-1 (Oct 10 2016 - 23:12:58 -0600) Arch Linux ARM
Pogo E02
gcc (GCC) 6.2.1 20160830
GNU ld (GNU Binutils) 2.27
Hit any key to stop autoboot: 0
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found

USB device 0:
Device 0: Vendor: Ext Hard Rev: Prod: Disk
Type: Hard Disk
Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
... is now current device
usb found on device 0
Checking for: /boot/uEnv.txt ...
** File not found /boot/zImage **
4603360 bytes read in 545 ms (8.1 MiB/s)
loading /boot/dtbs/kirkwood-pogo_e02.dtb ...
** File not found /boot/dtbs/kirkwood-pogo_e02.dtb **
4352795 bytes read in 554 ms (7.5 MiB/s)
Booting uImage with initrd
## Booting kernel from Legacy Image at 00810000 ...
Image Name: Linux-4.4.28-1-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4603296 Bytes = 4.4 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK')

I assume that one is from the Uboot himself, and have another one from the Kernel, much more large.

$this->bbcode_second_pass_code('', '[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.28-1-ARCH (builduser@leming) (gcc version 6.2.120160830 (GCC) ) #1 PREEMPT Sat Oct 29 00:27:49 MDT 2016
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Pogoplug E02
[ 0.000000] debug: ignoring loglevel setting.
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 65536
[ 0.000000] free_area_init_node: node 0, pgdat c0918bd4, node_mem_map cfdba000
[ 0.000000] Normal zone: 576 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 65536 pages, LIFO batch:15
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:1M(u-boot),-(rootfs) root=PARTUUID=4131cea8-01 rw rootwait ignore_loglevel netconso le=6665@10.10.10.3/eth0,6666@10.10.10.4/
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 245264K/262144K available (6597K kernel code, 547K rwdata, 1876K rodata, 300K init, 725K bss, 16880K 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 : 0xd0800000 - 0xff800000 ( 752 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc084e9a4 (8475 kB)
[ 0.000000] .init : 0xc084f000 - 0xc089a000 ( 300 kB)
[ 0.000000] .data : 0xc089a000 - 0xc0922e0c ( 548 kB)
[ 0.000000] .bss : 0xc0922e0c - 0xc09d83d8 ( 726 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:114
[ 0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 10.814887] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 10.815077] Console: colour dummy device 80x30
[ 10.815106] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[ 10.904972] pid_max: default: 32768 minimum: 301
[ 10.905068] Security Framework initialized
[ 10.905146] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 10.905164] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 10.905907] Initializing cgroup subsys io
[ 10.905939] Initializing cgroup subsys memory
[ 10.905991] Initializing cgroup subsys devices
[ 10.906017] Initializing cgroup subsys freezer
[ 10.906037] Initializing cgroup subsys net_cls
[ 10.906054] Initializing cgroup subsys perf_event
[ 10.906076] Initializing cgroup subsys net_prio
[ 10.906159] CPU: Testing write buffer coherency: ok
[ 10.906621] Setting up static identity map for 0x81e0 - 0x8238
[ 10.908577] devtmpfs: initialized
[ 10.910994] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 10.911433] pinctrl core: initialized pinctrl subsystem
[ 10.912224] NET: Registered protocol family 16
[ 10.912763] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 10.934975] cpuidle: using governor ladder
[ 10.964974] cpuidle: using governor menu
[ 10.965187] Kirkwood: MV88F6281-A0, TCLK=200000000.
[ 10.965212] Feroceon L2: Enabling L2
[ 10.965250] Feroceon L2: Cache support initialised.
[ 10.966000] initial MPP regs: 01111111 11113322 00001111 00100000 00000000 00 000000 00000000
[ 10.966027] final MPP regs: 01111111 11113322 00001111 00000000 00000000 00000000 00000000
[ 11.006484] vgaarb: loaded
[ 11.006816] SCSI subsystem initialized
[ 11.007003] libata version 3.00 loaded.
[ 11.007302] usbcore: registered new interface driver usbfs
[ 11.007377] usbcore: registered new interface driver hub
[ 11.007438] usbcore: registered new device driver usb
[ 11.007610] pps_core: LinuxPPS API ver. 1 registered
[ 11.007619] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 11.007653] PTP clock support registered
[ 11.008757] clocksource: Switched to clocksource orion_clocksource
[ 11.047473] FS-Cache: Loaded
[ 11.060697] NET: Registered protocol family 2
[ 11.061522] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 11.061560] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 11.061591] TCP: Hash tables configured (established 2048 bind 2048)
[ 11.061664] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 11.061687] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 11.061876] NET: Registered protocol family 1
[ 11.062202] RPC: Registered named UNIX socket transport module.
[ 11.062214] RPC: Registered udp transport module.
[ 11.062221] RPC: Registered tcp transport module.
[ 11.062227] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 11.062248] PCI: CLS 0 bytes, default 32
[ 11.062518] Trying to unpack rootfs image as initramfs...
[ 11.435303] Freeing initrd memory: 4252K (c1100000 - c1527000)
[ 11.437191] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 11.450062] VFS: Disk quotas dquot_6.6.0
[ 11.450319] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 11.452372] FS-Cache: Netfs 'nfs' registered for caching
[ 11.453483] NFS: Registering the id_resolver key type
[ 11.453545] Key type id_resolver registered
[ 11.453554] Key type id_legacy registered
[ 11.453638] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 11.454953] fuse init (API version 7.23)
[ 11.457186] aufs 4.4-20160912
[ 11.462612] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 11.462637] io scheduler noop registered
[ 11.462653] io scheduler deadline registered
[ 11.462929] io scheduler cfq registered
[ 11.463197] io scheduler bfq registered (default)
[ 11.463206] BFQ I/O-scheduler: v7r11
[ 11.463403] mv_xor mv_xor.0: Marvell shared XOR driver
[ 11.500056] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[ 11.500305] mv_xor mv_xor.1: Marvell shared XOR driver
[ 11.540019] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[ 11.545695] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 11.546820] console [ttyS0] disabled
[ 11.566954] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[ 12.200472] console [ttyS0] enabled
[ 12.219879] brd: module loaded
[ 12.230721] loop: module loaded
[ 12.234675] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[ 12.241167] nand: Samsung NAND 128MiB 3,3V 8-bit
[ 12.245809] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 12.253442] Scanning device for bad blocks
[ 12.305811] Bad eraseblock 636 at 0x000004f80000
[ 12.311336] Bad eraseblock 648 at 0x000005100000
[ 12.344388] 2 cmdlinepart partitions found on MTD device orion_nand
[ 12.350698] Creating 2 MTD partitions on "orion_nand":
[ 12.355859] 0x000000000000-0x000000100000 : "u-boot"
[ 12.361344] 0x000000100000-0x000008000000 : "rootfs"
[ 12.379832] libphy: orion_mdio_bus: probed
[ 12.384067] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 13.469710] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:02:24:78
[ 13.478592] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 13.485182] ehci-pci: EHCI PCI platform driver
[ 13.489733] ehci-orion: EHCI orion driver
[ 13.493837] orion-ehci orion-ehci.0: EHCI Host Controller
[ 13.499319] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 13.507065] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 13.528788] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 13.535717] hub 1-0:1.0: USB hub found
[ 13.539583] hub 1-0:1.0: 1 port detected
[ 13.544232] usbcore: registered new interface driver uas
[ 13.549763] usbcore: registered new interface driver usb-storage
[ 13.555851] usbcore: registered new interface driver ums-alauda
[ 13.561900] usbcore: registered new interface driver ums-cypress
[ 13.567987] usbcore: registered new interface driver ums-datafab
[ 13.574096] usbcore: registered new interface driver ums_eneub6250
[ 13.580381] usbcore: registered new interface driver ums-freecom
[ 13.586465] usbcore: registered new interface driver ums-isd200
[ 13.592485] usbcore: registered new interface driver ums-jumpshot
[ 13.598655] usbcore: registered new interface driver ums-karma
[ 13.604589] usbcore: registered new interface driver ums-onetouch
[ 13.610809] usbcore: registered new interface driver ums-realtek
[ 13.616898] usbcore: registered new interface driver ums-sddr09
[ 13.622920] usbcore: registered new interface driver ums-sddr55
[ 13.628944] usbcore: registered new interface driver ums-usbat
[ 13.635254] mousedev: PS/2 mouse device common for all mice
[ 13.858789] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 14.011333] hub 1-1:1.0: USB hub found
[ 14.015451] hub 1-1:1.0: 4 ports detected
[ 14.298780] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[ 14.412253] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[ 14.418902] scsi host0: usb-storage 1-1.1:1.0
[ 14.648781] rtc-mv rtc-mv: internal RTC not ticking
[ 14.653828] i2c /dev entries driver
[ 14.657912] sdhci: Secure Digital Host Controller Interface driver
[ 14.664143] sdhci: Copyright(c) Pierre Ossman
[ 14.668584] sdhci-pltfm: SDHCI platform and OF driver helper
[ 14.674793] ledtrig-cpu: registered to indicate activity on CPUs
[ 14.680997] usbcore: registered new interface driver r8712u
[ 14.686843] gre: GRE over IPv4 demultiplexor driver
[ 14.691811] NET: Registered protocol family 17
[ 14.696403] Key type dns_resolver registered
[ 14.701743] registered taskstats version 1
[ 14.726635] Key type encrypted registered
[ 14.731352] netpoll: netconsole: local port 6665
[ 14.735996] netpoll: netconsole: local IPv4 address 10.10.10.3
[ 14.742062] netpoll: netconsole: interface 'eth0'
[ 14.746790] netpoll: netconsole: remote port 6666
[ 14.751573] netpoll: netconsole: remote IPv4 address 10.10.10.4
[ 14.757516] netpoll: netconsole: remote ethernet address ff:ff:ff:ff:ff:ff
[ 14.764470] netpoll: netconsole: device eth0 not up yet, forcing it
[ 15.429412] scsi 0:0:0:0: Direct-Access Ext Hard Disk PQ0 ANSI: 4
[ 15.438988] sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298GiB)
[ 15.458781] sd 0:0:0:0: [sda] Write Protect is off
[ 15.463615] sd 0:0:0:0: [sda] Mode Sense: 10 00 00 00
[ 15.469349] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 15.478822] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 15.527671] sda: sda1 sda2
[ 15.541226] sd 0:0:0:0: [sda] Attached SCSI disk
[ 17.558659] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, fullduplex, flow control disabled
[ 17.571608] console [netcon0] enabled
[ 17.575307] netconsole: network logging started
[ 17.580010] hctosys: unable to open rtc device (rtc0)
[ 17.587044] Freeing unused kernel memory: 300K (c084f000 - c089a000)
[ 17.656568] random: systemd-tmpfile: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[ 17.688403] random: udevadm: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[ 17.700369] random: systemd-udevd: uninitialized urandom read (16 bytes read,24 bits of entropy available)
[ 17.710699] random: systemd-udevd: uninitialized urandom read (16 bytes read,24 bits of entropy available)
[ 17.837882] random: udevadm: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[ 17.868645] random: udevadm: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[ 17.898130] random: udevadm: uninitialized urandom read (16 bytes read, 25 bits of entropy available)
[ 17.927046] random: udevadm: uninitialized urandom read (16 bytes read, 25 bits of entropy available)
[ 17.956580] random: udevadm: uninitialized urandom read (16 bytes read, 25 bits of entropy available)
[ 17.986119] random: udevadm: uninitialized urandom read (16 bytes read, 25 bits of entropy available)
[ 19.346124] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[ 19.378213] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts:(null)
[ 20.939703] systemd[1]: System time before build time, advancing clock.
[ 21.207620] NET: Registered protocol family 10
[ 21.265233] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 21.354915] systemd[1]: systemd 231 running in system mode. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 21.373536] systemd[1]: Detected architecture arm.
[ 21.421336] systemd[1]: Set hostname to <alarm>.
[ 22.859494] random: nonblocking pool is initialized
[ 23.009946] systemd[1]: Reached target Remote File Systems.
[ 23.041898] systemd[1]: Created slice System Slice.
[ 23.069904] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 23.099906] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 23.129311] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 23.159203] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ 23.190075] systemd[1]: Created slice system-netctl\x2difplugd.slice.
[ 23.219232] systemd[1]: Listening on LVM2 metadata daemon socket.
[ 23.249251] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 23.278985] systemd[1]: Reached target Paths.
[ 23.299157] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[ 23.328986] systemd[1]: Reached target Encrypted Volumes.
[ 23.359197] systemd[1]: Listening on udev Control Socket.
[ 23.395280] systemd[1]: Listening on Process Core Dump Socket.
[ 23.465238] systemd[1]: Listening on Journal Socket.
[ 23.492778] systemd[1]: Mounting POSIX Message Queue File System...
[ 23.539416] systemd[1]: Mounting Debug File System...
[ 23.615381] systemd[1]: Starting Create list of required static device nodesfor the current kernel...
[ 23.663141] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 23.713542] systemd[1]: Starting Setup Virtual Console...
[ 23.799431] systemd[1]: Starting Apply Kernel Variables...
[ 23.823981] systemd[1]: Mounting FUSE Control File System...
[ 23.865678] EXT4-fs (sda1): re-mounted. Opts: (null)
[ 23.885705] systemd[1]: Listening on Journal Socket (/dev/log).
[ 23.963361] systemd[1]: Starting Journal Service...
[ 23.989433] systemd[1]: Listening on udev Kernel Socket.
[ 24.003694] systemd[1]: Created slice User and Session Slice.
[ 24.059124] systemd[1]: Reached target Slices.
[ 24.080009] systemd[1]: Created slice system-getty.slice.
[ 24.129291] systemd[1]: Mounted Debug File System.
[ 24.149215] systemd[1]: Mounted FUSE Control File System.
[ 24.179118] systemd[1]: Mounted POSIX Message Queue File System.
[ 24.211566] systemd[1]: Started Create list of required static device nodes for the current kernel.
[ 24.241247] systemd[1]: Started Remount Root and Kernel File Systems.
[ 24.270676] systemd[1]: Started Setup Virtual Console.
[ 24.315413] systemd-journald[176]: File /var/log/journal/e4b5dad211aa4a41920893d218a05e68/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ 24.344412] systemd[1]: Starting Load/Save Random Seed...
[ 24.499649] systemd[1]: Starting udev Coldplug all Devices...
[ 24.534434] systemd[1]: Starting Create Static Device Nodes in /dev...
[ 24.680358] systemd[1]: Started Load/Save Random Seed.
[ 25.116204] systemd[1]: Started udev Coldplug all Devices.
[ 25.208272] systemd[1]: Started Create Static Device Nodes in /dev.
[ 25.264499] systemd[1]: Starting udev Kernel Device Manager...
[ 25.297265] systemd[1]: Reached target Local File Systems (Pre).
[ 25.491368] systemd[1]: Started Journal Service.
[ 25.700643] systemd-journald[176]: Received request to flush runtime journal from PID 1
[ 26.244712] MV-CESA:Could not register sha1 driver
[ 26.265748] MV-CESA:Could not register hmac-sha1 driver
[ 27.518991] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
[ 27.614092] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts:(null)
[ 30.329090] Adding 1048572k swap on /media/usb/swapfile.img. Priority:-1 extents:265 across:1082584k')

Thanks a lot in advance
elsurubi
 
Posts: 13
Joined: Sun Jun 16, 2013 10:45 pm

Re: Pogo e02 only Netconsole access

Postby moonman » Mon Feb 06, 2017 11:27 pm

I don't see anything wrong at all. Your device boots up just fine. Did you check if "ethaddr" variable was set in Uboot after updating it?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Pogo e02 only Netconsole access

Postby elsurubi » Tue Feb 07, 2017 12:16 am

No, i do not set nothing after the update

ethaddr is correct (same than before the update)

this is my printenv:

$this->bbcode_second_pass_code('', 'printenv
bootcmd=run startboot;run bootubi
bootdir=/boot
bootfilem=uImage
bootfilez=zImage
bootubi=echo Trying to boot from NAND ...;if run mountubi; then ubifsload ${loadadd r} /boot/zImage;ubifsload ${fdtaddr} /boot/dtbs/${fdtfile};ubifsumount; setenv boot args console=${console} ubi.mtd=1 root=ubi0:rootfs ro rootfstype=ubifs rootwait ${ mtdparts};bootz ${loadaddr} - ${fdtaddr};fi
console=ttyS0,115200
devnum=0
ethact=egiga0
ethaddr=00:25:31:02:24:78
fdtaddr=0x800000
fdtdir=/boot/dtbs
fdtfile=kirkwood-pogo_e02.dtb
ipaddr=10.10.10.3
loadaddr=0x810000
loadfdt=echo loading ${fdtdir}/${fdtfile} ...; load ${devtype} ${bootpart} ${fdtadd r} ${fdtdir}/${fdtfile}
loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilez} || load $ {devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilem}
loadrd=load ${devtype} ${bootpart} ${rdaddr} ${bootdir}/${rdfile}
mainargs=setenv bootargs console=${console} ${mtdparts} root=${root} rw rootwait ${ optargs} ${ncargs}
mountubi=ubi part rootfs; ubifsmount ubi0:rootfs
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
ncargs=ignore_loglevel netconsole=6665@10.10.10.3/eth0,6666@10.10.10.4/
ncip=10.10.10.5
ncipk=10.10.10.4
netconsole=on
partition=nand0,0
preboot=if env exists netconsole && test ${netconsole} = on; then if ping ${ncip}; then setenv stdin nc; setenv stdout nc; setenv stderr nc; version; if env exists ncargsusr; then echo ncargs has been defined by user; setenv ncargs ${ncargsusr}; e lse setenv ncargs ignore_loglevel netconsole=6665@${ipaddr}/eth0,6666@${ncipk}/; fi ; fi; else echo Netconsole has been turned off.; echo To turn it on, set netconsole variable to on.; setenv stdin; setenv stdout; setenv stderr; setenv ncargs; fi
rdaddr=0x1100000
rdfile=initramfs-linux.img
startboot=usb start; for devtype in usb ; do setenv devnum 0; while ${devtype} dev ${devnum}; do echo ${devtype} found on device ${devnum}; setenv bootpart ${devnum }:1; echo Checking for: ${bootdir}/uEnv.txt ...; if test -e ${devtype} ${bootpart} ${bootdir}/uEnv.txt; then load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/uEnv. txt; env import -t ${loadaddr} ${filesize}; echo Loaded environment from ${bootdir} /uEnv.txt; echo Checking if uenvcmd is set ...; if test -n ${uenvcmd}; then echo R unning uenvcmd ...; run uenvcmd; fi; fi; if run loadimage; then if env exists root; then echo root has been defined by user; else part uuid ${devtype} ${bootpart} uui d; setenv root PARTUUID=${uuid}; fi; run mainargs; if run loadfdt; then if run lo adrd; then bootz ${loadaddr} ${rdaddr}:${filesize} ${fdtaddr}; else bootz ${loada ddr} - ${fdtaddr}; fi; else if run loadrd; then echo Booting uImage with initrd; bootm ${loadaddr} ${rdaddr}:${filesize}; else bootm ${loadaddr}; fi; fi; else ech o No kernel found; fi; setexpr devnum ${devnum} + 1; done; done;
stderr=nc
stdin=nc
stdout=nc

Environment size: 2952/131068 bytes')

can i just install again Archlinux from netconsole?
Why my router is not assigning a ip to this Pogo ?
elsurubi
 
Posts: 13
Joined: Sun Jun 16, 2013 10:45 pm

Re: Pogo e02 only Netconsole access

Postby moonman » Tue Feb 07, 2017 1:01 am

I don't know why it is not assigning an IP address. All I can see right now is that it boots up without any problems.

Try to powercycle your rotuer. Either way, the problems you are having now were not caused by the U-Boot update.

You can reinstall, but not with netconsole. You just need
1. Linux running on on your PC
2. This tarball: http://os.archlinuxarm.org/os/ArchLinux ... est.tar.gz
3. Format first partition of the drive as ext4
4. Extract ArchLinuxARM-kirkwood-latest.tar.gz to that partition

This is an old step by step. At step 5 format as ext4 and there is no more size limitation.
viewtopic.php?p=19207#p19207
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Pogo e02 only Netconsole access

Postby elsurubi » Tue Feb 07, 2017 4:03 am

Thanks MOONMAN, problem solved

Reinstaled from your link: https://archlinuxarm.org/forum/viewtopic.php?p=19207#p19207
elsurubi
 
Posts: 13
Joined: Sun Jun 16, 2013 10:45 pm

Re: Pogo e02 only Netconsole access

Postby elsurubi » Tue Feb 14, 2017 9:34 pm

Here we go again...
After reinstaling Archlinux, (Thanks again Moonman) i follow this guide: https://archlinuxarm.org/forum/viewtopic.php?f=30&t=8383

everithing was fine until this command:

Pogoplug V2/Dockstar:

Code: Select all
fw_setenv bootcmd 'usb start; setenv letter 9;for type in usb; do for disk in 0 1 2 3; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done;run loadubi'


No more Archlinux... :|

So this is my netconsole output rigth now:

$this->bbcode_second_pass_code('', 'U-Boot 2016.09.01-1 (Oct 10 2016 - 23:12:58 -0600) Arch Linux ARM
Pogo E02
gcc (GCC) 6.2.1 20160830
GNU ld (GNU Binutils) 2.27
Hit any key to stop autoboot: 0
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found

Partition Map for USB device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 2048 22505472 000f05c9-01 83
2 22507520 602634240 000f05c9-02 83
## Error: "load" not defined
## Unknown partition table type 0
## Error: "load" not defined
## Unknown partition table type 0
## Error: "load" not defined
## Unknown partition table type 0
## Error: "load" not defined
## Error: "loadubi" not defined
')

And printenv:

$this->bbcode_second_pass_code('', 'PogoE02> printenv
printenv
bootcmd=usb start; setenv letter 9;for type in usb; do for disk in 0 1 2 3; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done;run loadubi
bootdir=/boot
bootfilem=uImage
bootfilez=zImage
bootubi=echo Trying to boot from NAND ...;if run mountubi; then ubifsload ${loadaddr} /boot/zImage;ubifsload ${fdtaddr} /boot/dtbs/${fdtfile};ubifsumount; setenv bootargs console=${console} ubi.mtd=1 root=ubi0:rootfs ro rootfstype=ubifs rootwait ${mtdparts};bootz ${loadaddr} - ${fdtaddr};fi
console=ttyS0,115200
ethact=egiga0
ethaddr=00:25:31:02:24:78
fdtaddr=0x800000
fdtdir=/boot/dtbs
fdtfile=kirkwood-pogo_e02.dtb
ipaddr=10.10.10.3
letter=d
loadaddr=0x810000
loadfdt=echo loading ${fdtdir}/${fdtfile} ...; load ${devtype} ${bootpart} ${fdtaddr} ${fdtdir}/${fdtfile}
loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilez} || load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilem}
loadrd=load ${devtype} ${bootpart} ${rdaddr} ${bootdir}/${rdfile}
mainargs=setenv bootargs console=${console} ${mtdparts} root=${root} rw rootwait ${optargs} ${ncargs}
mountubi=ubi part rootfs; ubifsmount ubi0:rootfs
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
ncargs=ignore_loglevel netconsole=6665@10.10.10.3/eth0,6666@10.10.10.4/
ncip=10.10.10.5
ncipk=10.10.10.4
netconsole=on
preboot=if env exists netconsole && test ${netconsole} = on; then if ping ${ncip}; then setenv stdin nc; setenv stdout nc; setenv stderr nc; version; if env exists ncargsusr; then echo ncargs has been defined by user; setenv ncargs ${ncargsusr}; else setenv ncargs ignore_loglevel netconsole=6665@${ipaddr}/eth0,6666@${ncipk}/; fi; fi; else echo Netconsole has been turned off.; echo To turn it on, set netconsole variable to on.; setenv stdin; setenv stdout; setenv stderr; setenv ncargs; fi
rdaddr=0x1100000
rdfile=initramfs-linux.img
startboot=usb start; for devtype in usb ; do setenv devnum 0; while ${devtype} dev ${devnum}; do echo ${devtype} found on device ${devnum}; setenv bootpart ${devnum}:1; echo Checking for: ${bootdir}/uEnv.txt ...; if test -e ${devtype} ${bootpart} ${bootdir}/uEnv.txt; then load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/uEnv.txt; env import -t ${loadaddr} ${filesize}; echo Loaded environment from ${bootdir}/uEnv.txt; echo Checking if uenvcmd is set ...; if test -n ${uenvcmd}; then echo Running uenvcmd ...; run uenvcmd; fi; fi; if run loadimage; then if env exists root; then echo root has been defined by user; else part uuid ${devtype} ${bootpart} uuid; setenv root PARTUUID=${uuid}; fi; run mainargs; if run loadfdt; then if run loadrd; then bootz ${loadaddr} ${rdaddr}:${filesize} ${fdtaddr}; else bootz ${loadaddr} - ${fdtaddr}; fi; else if run loadrd; then echo Booting uImage with initrd; bootm ${loadaddr} ${rdaddr}:${filesize}; else bootm ${loadaddr}; fi; fi; else echo No kernel found; fi; setexpr devnum ${devnum} + 1; done; done;
stderr=nc
stdin=nc
stdout=nc

Environment size: 3033/131068 bytes
')

Again, thanks in advance, any help is apreciated
elsurubi
 
Posts: 13
Joined: Sun Jun 16, 2013 10:45 pm

Re: Pogo e02 only Netconsole access

Postby moonman » Wed Feb 15, 2017 1:56 am

It specifically says in the guide NOT to run these if your U-Boot version is 2015.04 or newer. Yours is 2016.09.

You can reset the U-Boot environment to default. VERY IMPORTANT: take note of your ethaddr as you will need to set it after resetting to defaults:

$this->bbcode_second_pass_code('', 'env default -a
setenv ethaddr 00:25:31:02:24:78
')

Before you commit this, double and triple verify that ethaddr is set by running 'printenv'. If the ethaddr is not set your netconsole will stop working and the only way to recover will be serial console.
after you are sure it is correct, commit the changes
$this->bbcode_second_pass_code('', 'saveenv')

power cycle your device or run 'reset' command
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Pogo e02 only Netconsole access

Postby elsurubi » Wed Feb 15, 2017 2:21 am

$this->bbcode_second_pass_code('', 'U-Boot 2016.09.01-1 (Oct 10 2016 - 23:12:58 -0600) Arch Linux ARM
Pogo E02
gcc (GCC) 6.2.1 20160830
GNU ld (GNU Binutils) 2.27
Hit any key to stop autoboot: 0
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found

USB device 0:
Device 0: Vendor: Ext Hard Rev: Prod: Disk
Type: Hard Disk
Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
... is now current device
usb found on device 0
Checking for: /boot/uEnv.txt ...
** File not found /boot/zImage **
4605824 bytes read in 275 ms (16 MiB/s)
loading /boot/dtbs/kirkwood-pogo_e02.dtb ...
** File not found /boot/dtbs/kirkwood-pogo_e02.dtb **
4424549 bytes read in 266 ms (15.9 MiB/s)
## Booting kernel from Legacy Image at 00810000 ...
Image Name: Linux-4.4.47-1-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4605760 Bytes = 4.4 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
')

And again, thanks Moonman, do i need to repeat the Archlinuxarm install now?


$this->bbcode_second_pass_code('', ' .
/#\ _ _ _ _
/###\ __ _ _ __ ___| |__ | (_)_ __ _ ___ __| | _ ___ __ __
/#####\ / _` | '__/ __| '_ \ | | | '_ \| | | \ \/ /| | / \ | _ \ \/ |
/##.-.##\ | (_| | | | (__| | | || | | | | | |_| |> < | |/ ^ \| / |\/| |
/##( )##\ \__,_|_| \___|_| |_||_|_|_| |_|\__,_/_/\_\| /_/ \_\_|_\_| |_|
/#.-- --.#\ |_|
/' '\

(rescue)[root@alarm ~]# printenv
XDG_SESSION_ID=c1
TERM=xterm
SHELL=/bin/bash
SSH_CLIENT=192.168.1.147 40111 22
SSH_TTY=/dev/pts/0
HISTFILESIZE=50
USER=root
MAIL=/var/spool/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
PWD=/root
LANG=C
SHLVL=1
HOME=/root
LOGNAME=root
SSH_CONNECTION=192.168.1.147 40111 192.168.1.50 22
XDG_RUNTIME_DIR=/run/user/0
HISTFILE=/tmp/bash_history_root
_=/usr/bin/printenv
(rescue)[root@alarm ~]#
')
elsurubi
 
Posts: 13
Joined: Sun Jun 16, 2013 10:45 pm

Re: Pogo e02 only Netconsole access

Postby moonman » Wed Feb 15, 2017 2:31 am

Your devices should boot now. You shouldn't have to reinstall. What you booted into is the rescue system and printenv won't work.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Pogo e02 only Netconsole access

Postby elsurubi » Wed Feb 15, 2017 2:40 am

Again the same issue, like before, no DHCP assigned to ArchlinuxArm, but no problem from the rescue system.
Weird issue, I presume is a disk incompatibility.
No problem, I going to wipe the partition and follow your first post about decompress the image, and start from square one
Thanks Moonman!!!
elsurubi
 
Posts: 13
Joined: Sun Jun 16, 2013 10:45 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 10 guests