Re: Pogoplug Mobile Debian Install September 08, 2018 08:58AM |
Registered: 7 years ago Posts: 156 |
Re: Pogoplug Mobile Debian Install September 08, 2018 03:00PM |
Admin Registered: 13 years ago Posts: 18,569 |
Re: Pogoplug Mobile Debian Install September 08, 2018 11:35PM |
Registered: 7 years ago Posts: 156 |
Re: Pogoplug Mobile Debian Install September 17, 2018 06:13PM |
Registered: 7 years ago Posts: 156 |
Re: Pogoplug Mobile Debian Install September 17, 2018 06:50PM |
Admin Registered: 13 years ago Posts: 18,569 |
Re: Pogoplug Mobile Debian Install September 17, 2018 06:58PM |
Admin Registered: 13 years ago Posts: 18,569 |
ethact=egiga0 bootdelay=3 baudrate=115200 mainlineLinux=yes console=ttyS0,115200 led_init=green blinking led_exit=green off led_error=orange blinking mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) mtdids=nand0=orion_nand partition=nand0,2 stdin=serial stdout=serial stderr=serial rescue_installed=0 rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi force_rescue=0 force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi ubifs_mtd=3 ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done usb_scan_list=1 2 3 4 usb_scan_1=usb=0:1 dev=sda1 usb_scan_2=usb=1:1 dev=sdb1 usb_scan_3=usb=2:1 dev=sdc1 usb_scan_4=usb=3:1 dev=sdd1 usb_init=run usb_scan usb_device=0:1 usb_root=/dev/sda1 usb_rootfstype=ext2 usb_rootdelay=10 usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset ethaddr=00:25:xx:xx:xx:xx arcNumber=2097
setenv pogo_bootcmd 'if fsload uboot-original-mtd0.kwb; then go 0x800200; fi' run pogo_bootcmd
Re: Pogoplug Mobile Debian Install September 19, 2018 09:50PM |
Registered: 7 years ago Posts: 156 |
Re: Pogoplug Mobile Debian Install September 20, 2018 01:03AM |
Admin Registered: 13 years ago Posts: 18,569 |
Re: Pogoplug Mobile Debian Install January 15, 2021 09:47PM |
Registered: 7 years ago Posts: 156 |
[root@PogoplugMobile /etc]# ./fw_printenv 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 ipaddr=192.168.0.231 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 preboot_nc=run if_netconsole start_netconsole 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.220 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=3960 machid=f78 usb_rootfstype=ext3 mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root) dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb bootcmd_pogo=if ubi part root 2048 && ubifsmount ubi:rootfs && ubifsload 0x800000 uboot.mtd0.dockstar.original.kwb ; then go 0x800200; fi bootcmd_exec=if run load_uimage; then; 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; fi bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_pogo set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd ethaddr=00:25:31:03:49:49
[root@PogoplugMobile /root]# cat /proc/mtd dev: size erasesize name mtd0: 00200000 00020000 "u-boot" mtd1: 00300000 00020000 "uImage" mtd2: 00300000 00020000 "uImage2" mtd3: 00800000 00020000 "failsafe" mtd4: 07000000 00020000 "root"
[root@PogoplugMobile /root]# cat /etc/fw_env.config /dev/mtd0 0xc0000 0x20000 0x20000
[root@PogoplugMobile /root]# dmesg | grep -i 'bad' <6>[ 0.960000] Scanning device for bad blocks <4>[ 0.970000] Bad eraseblock 32 at 0x000000400000 <5>[ 1.340000] UBI: number of bad PEBs: 0 <5>[ 1.370000] UBI: number of PEBs reserved for bad PEB handling: 8
[root@PogoplugMobile /root]# cat /proc/version Linux version 2.6.31.8 (afenn@kt) (gcc version 4.3.2 (sdk3.3-ct-ng-1.4.1) ) #4 Tue Aug 23 13:00:50 PDT 2011
[root@PogoplugMobile /root]# dmesg <5>[ 0.000000] Linux version 2.6.31.8 (afenn@kt) (gcc version 4.3.2 (sdk3.3-ct-ng-1.4.1) ) #4 Tue Aug 23 13:00:50 PDT 2011 <4>[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053177 <4>[ 0.000000] CPU: VIVT data cache, VIVT instruction cache <4>[ 0.000000] Machine: Feroceon-KW <4>[ 0.000000] Using UBoot passing parameters structure <4>[ 0.000000] Memory policy: ECC disabled, Data cache writeback <7>[ 0.000000] On node 0 totalpages: 32768 <7>[ 0.000000] free_area_init_node: node 0, pgdat c0413670, node_mem_map c042d000 <7>[ 0.000000] Normal zone: 256 pages used for memmap <7>[ 0.000000] Normal zone: 0 pages reserved <7>[ 0.000000] Normal zone: 32512 pages, LIFO batch:7 <4>[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 32512 <5>[ 0.000000] Kernel command line: console=ttyS0,115200 root=ubi0:rootfs ubi.mtd=4,2048 rootfstype=ubifs <4>[ 0.000000] PID hash table entries: 512 (order: 9, 2048 bytes) <6>[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) <6>[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) <6>[ 0.000000] Memory: 128MB = 128MB total <5>[ 0.000000] Memory: 118356KB available (3852K code, 261K data, 124K init, 0K highmem) <6>[ 0.000000] Hierarchical RCU implementation. <6>[ 0.000000] NR_IRQS:128 <4>[ 0.000000] Console: colour dummy device 80x30 <6>[ 0.000000] Calibrating delay loop... 799.53 BogoMIPS (lpj=3997696) <4>[ 0.230000] Mount-cache hash table entries: 512 <6>[ 0.230000] CPU: Testing write buffer coherency: ok <6>[ 0.230000] NET: Registered protocol family 16 <6>[ 0.230000] Feroceon L2: Enabling L2 <6>[ 0.230000] Feroceon L2: Cache support initialised. <4>[ 0.230000] <4>[ 0.230000] CPU Interface <4>[ 0.230000] ------------- <4>[ 0.230000] SDRAM_CS0 ....base 00000000, size 128MB <4>[ 0.230000] SDRAM_CS1 ....disable <4>[ 0.230000] SDRAM_CS2 ....disable <4>[ 0.230000] SDRAM_CS3 ....disable <4>[ 0.230000] PEX0_MEM ....base e0000000, size 128MB <4>[ 0.230000] PEX0_IO ....base f2000000, size 1MB <4>[ 0.230000] PEX1_MEM ....no such <4>[ 0.230000] PEX1_IO ....no such <4>[ 0.230000] INTER_REGS ....base f1000000, size 1MB <4>[ 0.230000] NFLASH_CS ....base fa000000, size 2MB <4>[ 0.230000] SPI_CS ....base f4000000, size 16MB <4>[ 0.230000] BOOT_ROM_CS ....no such <4>[ 0.230000] DEV_BOOTCS ....no such <4>[ 0.230000] CRYPT_ENG ....base f0000000, size 2MB <4>[ 0.230000] <4>[ 0.230000] Marvell Development Board (LSP Version KW_LSP_5.1.3_patch18)-- SHEEVA PLUG Soc: 88F6192 A1 LE <4>[ 0.230000] <4>[ 0.230000] Detected Tclk 166666667 and SysClk 200000000 <4>[ 0.230000] Marvell USB EHCI Host controller #0: c403e740 <4>[ 0.730000] PEX0 interface detected no Link. <6>[ 0.740000] PCI: bus0: Fast back to back transfers enabled <4>[ 0.740000] mvPexLocalBusNumSet: ERR. Invalid PEX interface 1 <4>[ 0.750000] bio: create slab <bio-0> at 0 <5>[ 0.750000] SCSI subsystem initialized <6>[ 0.750000] usbcore: registered new interface driver usbfs <6>[ 0.750000] usbcore: registered new interface driver hub <6>[ 0.750000] usbcore: registered new device driver usb <6>[ 0.750000] NET: Registered protocol family 2 <6>[ 0.750000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) <6>[ 0.750000] TCP established hash table entries: 4096 (order: 3, 32768 bytes) <6>[ 0.750000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) <6>[ 0.750000] TCP: Hash tables configured (established 4096 bind 4096) <6>[ 0.750000] TCP reno registered <6>[ 0.750000] NET: Registered protocol family 1 <6>[ 0.750000] cpufreq: Init kirkwood cpufreq driver <7>[ 0.750000] cpufreq: High frequency: 800000KHz - Low frequency: 200000KHz <7>[ 0.750000] cpufreq: Setting CPU Frequency to 800000 KHz <7>[ 0.750000] cpufreq: Setting PowerSaveState to off <6>[ 0.760000] XOR registered 4 channels <6>[ 0.760000] XOR 2nd invalidate WA enabled <4>[ 0.760000] cesadev_init(c000d7fc) <4>[ 0.760000] mvCesaInit: sessions=640, queue=64, pSram=f0000000 <6>[ 0.770000] squashfs: version 4.0 (2009/01/31) Phillip Lougher <6>[ 0.770000] msgmni has been set to 231 <6>[ 0.770000] alg: No test for cipher_null (cipher_null-generic) <6>[ 0.770000] alg: No test for ecb(cipher_null) (ecb-cipher_null) <6>[ 0.770000] alg: No test for digest_null (digest_null-generic) <6>[ 0.770000] alg: No test for compress_null (compress_null-generic) <6>[ 0.780000] alg: No test for stdrng (krng) <6>[ 0.780000] alg: No test for hmac(digest_null) (hmac(digest_null-generic)) <6>[ 0.790000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) <6>[ 0.790000] io scheduler noop registered <6>[ 0.790000] io scheduler anticipatory registered (default) <4>[ 0.790000] Initializing ths8200_init <4>[ 0.790000] Initializing dove_adi9889_init <6>[ 0.810000] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled <6>[ 0.810000] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A <6>[ 0.810000] console [ttyS0] enabled <4>[ 0.820000] <4>[ 0.820000] Warning Sata is Powered Off <4>[ 0.820000] Loading Marvell Ethernet Driver: <4>[ 0.830000] o Cached descriptors in DRAM <4>[ 0.830000] o DRAM SW cache-coherency <4>[ 0.840000] o 1 Giga ports supported <4>[ 0.840000] o Single RX Queue support - ETH_DEF_RXQ=0 <4>[ 0.840000] o Single TX Queue support - ETH_DEF_TXQ=0 <4>[ 0.850000] o TCP segmentation offload (TSO) supported <4>[ 0.860000] o Large Receive offload (LRO) supported <4>[ 0.860000] o Receive checksum offload supported <4>[ 0.860000] o Transmit checksum offload supported <4>[ 0.870000] o Network Fast Processing (Routing) supported - (Disabled) <4>[ 0.880000] o Driver ERROR statistics enabled <4>[ 0.880000] o Proc tool API enabled <4>[ 0.880000] o SKB Reuse supported - (Disabled) <4>[ 0.890000] o SKB Recycle supported - (Disabled) <4>[ 0.890000] o Rx descripors: q0=128 <4>[ 0.900000] o Tx descripors: q0=532 <4>[ 0.900000] o Loading network interface(s): <4>[ 0.910000] o register under mv88fx_eth platform <4>[ 0.910000] o eth0, ifindex = 2, GbE port = 0 <4>[ 0.920000] <4>[ 0.920000] mvFpRuleDb (c4327000): 1024 entries, 4096 bytes <4>[ 0.920000] Counter=0, opIdx=6, overhead=16 <4>[ 0.930000] Counter=1, opIdx=2, overhead=0 <4>[ 0.930000] Counter=2, opIdx=1, overhead=18 <4>[ 0.940000] Counter=3, opIdx=2, overhead=0 <6>[ 0.940000] tun: Universal TUN/TAP device driver, 1.6 <6>[ 0.950000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> <6>[ 0.950000] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit) <6>[ 0.960000] Scanning device for bad blocks <4>[ 0.970000] Bad eraseblock 32 at 0x000000400000 <4>[ 1.020000] Using static partition definition <5>[ 1.020000] Creating 5 MTD partitions on "nand_mtd": <5>[ 1.030000] 0x000000000000-0x000000200000 : "u-boot" <5>[ 1.030000] 0x000000200000-0x000000500000 : "uImage" <5>[ 1.040000] 0x000000500000-0x000000800000 : "uImage2" <5>[ 1.040000] 0x000000800000-0x000001000000 : "failsafe" <5>[ 1.050000] 0x000001000000-0x000008000000 : "root" <5>[ 1.060000] UBI: attaching mtd4 to ubi0 <5>[ 1.060000] UBI: physical eraseblock size: 131072 bytes (128 KiB) <5>[ 1.070000] UBI: logical eraseblock size: 126976 bytes <5>[ 1.070000] UBI: smallest flash I/O unit: 2048 <5>[ 1.080000] UBI: sub-page size: 512 <5>[ 1.080000] UBI: VID header offset: 2048 (aligned 2048) <5>[ 1.090000] UBI: data offset: 4096 <5>[ 1.320000] UBI: attached mtd4 to ubi0 <5>[ 1.320000] UBI: MTD device name: "root" <5>[ 1.330000] UBI: MTD device size: 112 MiB <5>[ 1.330000] UBI: number of good PEBs: 896 <5>[ 1.340000] UBI: number of bad PEBs: 0 <5>[ 1.340000] UBI: max. allowed volumes: 128 <5>[ 1.350000] UBI: wear-leveling threshold: 4096 <5>[ 1.350000] UBI: number of internal volumes: 1 <5>[ 1.360000] UBI: number of user volumes: 1 <5>[ 1.360000] UBI: available PEBs: 0 <5>[ 1.370000] UBI: total number of reserved PEBs: 896 <5>[ 1.370000] UBI: number of PEBs reserved for bad PEB handling: 8 <5>[ 1.380000] UBI: max/mean erase counter: 38/5 <5>[ 1.380000] UBI: image sequence number: 0 <6>[ 1.380000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver <6>[ 1.390000] ehci_marvell ehci_marvell.70059: Marvell Orion EHCI <6>[ 1.400000] ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1 <5>[ 1.410000] UBI: background thread "ubi_bgt0d" started, PID 445 <6>[ 1.440000] ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100 <6>[ 1.460000] ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00 <6>[ 1.460000] usb usb1: configuration #1 chosen from 1 choice <6>[ 1.470000] hub 1-0:1.0: USB hub found <6>[ 1.470000] hub 1-0:1.0: 1 port detected <6>[ 1.480000] Initializing USB Mass Storage driver... <6>[ 1.480000] usbcore: registered new interface driver usb-storage <6>[ 1.490000] USB Mass Storage support registered. <6>[ 1.490000] usbcore: registered new interface driver ums-datafab <6>[ 1.500000] usbcore: registered new interface driver ums-freecom <6>[ 1.500000] usbcore: registered new interface driver ums-jumpshot <6>[ 1.510000] usbcore: registered new interface driver ums-sddr09 <6>[ 1.520000] usbcore: registered new interface driver ums-sddr55 <6>[ 1.520000] usbcore: registered new interface driver ums-usbat <6>[ 1.530000] mice: PS/2 mouse device common for all mice <6>[ 1.530000] i2c /dev entries driver <7>[ 1.540000] cpufreq: Setting CPU Frequency to 800000 KHz <7>[ 1.540000] cpufreq: Setting PowerSaveState to off <6>[ 1.550000] sdhci: Secure Digital Host Controller Interface driver <6>[ 1.550000] sdhci: Copyright(c) Pierre Ossman <5>[ 1.560000] mmc0: mvsdio driver initialized, lacking card detect (fall back to polling) <6>[ 1.570000] usbcore: registered new interface driver usbhid <6>[ 1.570000] usbhid: v2.6:USB HID core driver <6>[ 1.580000] TCP cubic registered <6>[ 1.580000] NET: Registered protocol family 17 <6>[ 1.590000] RPC: Registered udp transport module. <6>[ 1.590000] RPC: Registered tcp transport module. <4>[ 1.600000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0) <5>[ 1.670000] UBIFS: recovery needed <5>[ 1.730000] UBIFS: recovery completed <5>[ 1.740000] UBIFS: mounted UBI device 0, volume 0, name "rootfs" <5>[ 1.740000] UBIFS: file system size: 110850048 bytes (108252 KiB, 105 MiB, 873 LEBs) <5>[ 1.750000] UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs) <5>[ 1.760000] UBIFS: media format: w4/r0 (latest is w4/r0) <5>[ 1.770000] UBIFS: default compressor: lzo <5>[ 1.770000] UBIFS: reserved for root: 0 bytes (0 KiB) <4>[ 1.780000] VFS: Mounted root (ubifs filesystem) on device 0:11. <6>[ 1.780000] Freeing init memory: 124K <5>[ 4.170000] eth0: link down <5>[ 4.170000] eth0: started <5>[ 5.860000] eth0: link up, full duplex, speed 1 Gbps <4>[ 8.010000] ufsd: module license 'Commercial product' taints kernel. <4>[ 8.020000] Disabling lock debugging due to kernel taint <5>[ 8.050000] ufsd: driver 8.5 (NTFS4LINUX_U85_017_S[2011-08-17-16:51:48]) LBD=ON with delayalloc with ioctl loaded at bf000000 <5>[ 8.050000] NTFS support included <5>[ 8.050000] Hfs+/HfsX support included <5>[ 8.050000] For 'CloudEngines_PogoPlug_2011-08-03' <4>[ 8.390000] rtusb init rt2870 ---> <6>[ 8.400000] usbcore: registered new interface driver rt2870 <4>[ 8.420000] Cloud Engines XCE Init [Version: 3.1.99.12] <6>[ 8.430000] XCE: CPU MEMORY MAP: <6>[ 8.430000] XCE: -- 0x00001000 - 0xbeffffff (3055 MB) User Space Mappings <6>[ 8.440000] XCE: -- 0xbf000000 - 0xbfffffff ( 16 MB) Kernel module space <6>[ 8.440000] XCE: -- 0xc0000000 - 0xc7ffffff ( 128 MB) Kernel direct-mapped ram <6>[ 8.450000] XCE: -- 0xc8800000 - 0xe7ffffff ( 504 MB) Kernel vmalloc space <6>[ 8.460000] XCE: -- 0xe8000000 - 0xfeffffff ( 367 MB) Kernel platform space <6>[ 8.470000] XCE: CPU FEATURES: <6>[ 8.470000] XCE: -- I Cache: enabled <6>[ 8.470000] XCE: -- D Cache: enabled <6>[ 8.480000] XCE: -- Branch Predict: enabled <6>[ 8.480000] XCE: -- MMU: enabled <6>[ 8.490000] XCE: -- Alignment Abort: enabled <6>[ 8.500000] XCE: BLPARAMS: -- Loading properties [c4a7befc]. <6>[ 8.510000] XCE: BLPARAMS: -- MTD @ [c4323000]. <6>[ 8.510000] XCE: BLPARAMS: Locating parameter block... <6>[ 8.510000] XCE: BLPARAMS: reading 2048 bytes @ a0000 <6>[ 8.520000] XCE: Loaded Property Size: 2048 <6>[ 8.530000] XCE: - 'cesvcid' -> 'QHDM8SUYPAQDRDRD9FDABNLHG2' <6>[ 8.530000] XCE: - 'ceboardver' -> 'PPV4A1' <6>[ 8.540000] XCE: -- ICache Prefetch: enabled <6>[ 8.540000] XCE: -- DCache Prefetch: enabled <6>[ 8.550000] XCE: -- L2 Cache: enabled <6>[ 8.550000] XCE: -- L2 Prefetch: disabled <6>[ 8.550000] XCE: -- L2 Writethrough: disabled <6>[ 8.560000] XCE: -- Write Allocate: disabled <6>[ 8.560000] XCE: -- Streaming: disabled <6>[ 8.570000] XCE: Current GPIO State: <6>[ 8.570000] XCE: GPIO L OUT: 0x21400000 <6>[ 8.580000] XCE: GPIO L OE: 0x10000000 <6>[ 8.580000] XCE: GPIO L BLINK: 0x00000000 <6>[ 8.580000] XCE: GPIO L POL: 0x00000000 <6>[ 8.590000] XCE: GPIO L IN: 0x11400000 <6>[ 8.590000] XCE: GPIO H OUT: 0xfffc7fff <6>[ 8.600000] XCE: GPIO H OE: 0x00000000 <6>[ 8.600000] XCE: GPIO H BLINK: 0x00004000 <6>[ 8.610000] XCE: GPIO H POL: 0x00000000 <6>[ 8.610000] XCE: GPIO H IN: 0x0000000f <6>[ 8.730000] XCE: BLPARAMS: -- Loading properties [c49b9ecc]. <6>[ 8.730000] XCE: BLPARAMS: -- MTD @ [c4323000]. <6>[ 8.740000] XCE: BLPARAMS: Locating parameter block... <6>[ 8.740000] XCE: BLPARAMS: reading 2048 bytes @ a0000 <6>[ 8.750000] XCE: BLPARAMS: reading 2048 bytes @ a0800 <6>[ 8.760000] XCE: BLPARAMS: reading 2048 bytes @ a1000 <6>[ 8.760000] XCE: BLPARAMS: reading 2048 bytes @ a1800 <6>[ 14.030000] XCE: XCE: LED -> DISCONNECTED
Re: Pogoplug Mobile Debian Install January 15, 2021 10:17PM |
Admin Registered: 13 years ago Posts: 18,569 |
fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts'
Re: Pogoplug Mobile Debian Install January 16, 2021 12:49PM |
Registered: 7 years ago Posts: 156 |
Re: Pogoplug Mobile Debian Install January 16, 2021 04:05PM |
Admin Registered: 13 years ago Posts: 18,569 |
Quote
https://forum.doozan.com/read.php?3,12381
10. Set up netconsole. It's important to set up neconsole if you don't already have serial console connected. If you have serial console, don't set up netconsole at this moment, because it will interfere with serial console.
If you've flashed the default environments in step 8 then activate netconsole with the following envs:
Adjust 192.168.0.xxx and 192.168.0.yyy below to the real numbers in your network configuration. 192.168.0.xxx is this plug IP address, and 192.168.0.yyy is the IP address of the netconsole server where it will monitor the output from the this plug (adjust them to the real values in your own local network settings).
fw_setenv 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'
fw_setenv preboot 'run preboot_nc'
fw_setenv ipaddr '192.168.0.xxx'
fw_setenv serverip '192.168.0.yyy'
Re: Pogoplug Mobile Debian Install January 16, 2021 07:16PM |
Registered: 7 years ago Posts: 156 |
fw_setenv 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' fw_setenv preboot 'run preboot_nc' fw_setenv ipaddr '192.168.0.2' fw_setenv serverip '192.168.0.15'ipaddr is my pogo v4 and serverip is my macbook.
Re: Pogoplug Mobile Debian Install January 16, 2021 10:01PM |
Admin Registered: 13 years ago Posts: 18,569 |
> fw_setenv 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' > fw_setenv preboot 'run preboot_nc' > fw_setenv ipaddr '192.168.0.2' > fw_setenv serverip '192.168.0.15' >> ipaddr is my pogo v4 and serverip is my macbook.
nc -lup 6666 192.168.0.2 6666
Re: Pogoplug Mobile Debian Install January 16, 2021 11:44PM |
Registered: 7 years ago Posts: 156 |
> nc -lup 6666 192.168.0.2 6666 >>
invalid connection to [192.168.0.8] from (UNKNOWN) [192.168.0.4] 49154
preboot_nc=run if_netconsole start_netconsole start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; if_netconsole=ping $serverip serverip=192.168.0.220 ipaddr=192.168.0.231 # my actual IP ended in .0.2These are slightly different than the envs I recently set to try to get netconsole to work.
fw_setenv 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' fw_setenv preboot 'run preboot_nc' fw_setenv ipaddr '192.168.0.2' fw_setenv serverip '192.168.0.15'
Re: Pogoplug Mobile Debian Install January 17, 2021 01:36PM |
Registered: 7 years ago Posts: 156 |
Re: Pogoplug Mobile Debian Install January 17, 2021 04:20PM |
Admin Registered: 13 years ago Posts: 18,569 |
fw_setenv ipaddr '192.168.0.2' fw_setenv serverip '192.168.0.15'
Re: Pogoplug Mobile Debian Install January 17, 2021 05:07PM |
Registered: 7 years ago Posts: 156 |
root@pogoplug:~# nc -lup 6666 192.168.0.2 6666 invalid connection to [192.168.0.15] from (UNKNOWN) [192.168.0.4] 49154It's like something else is trying to connect to the E02 at (.0.15) from the .0.4 IP address.. I'm not sure what this device even is.
Quote
Quote
Yes, but you don't need to reflash u-boot. Just set it up while in Debian
Quote
[url
https://forum.doozan.com/read.php?3,12381[/url]
10. Set up netconsole. It's important to set up neconsole if you don't already have serial console connected. If you have serial console, don't set up netconsole at this moment, because it will interfere with serial console.
If you've flashed the default environments in step 8 then activate netconsole with the following envs:
Adjust 192.168.0.xxx and 192.168.0.yyy below to the real numbers in your network configuration. 192.168.0.xxx is this plug IP address, and 192.168.0.yyy is the IP address of the netconsole server where it will monitor the output from the this plug (adjust them to the real values in your own local network settings).
fw_setenv 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'
fw_setenv preboot 'run preboot_nc'
fw_setenv ipaddr '192.168.0.xxx'
fw_setenv serverip '192.168.0.yyy'
Re: Pogoplug Mobile Debian Install January 17, 2021 06:06PM |
Admin Registered: 13 years ago Posts: 18,569 |
> root@pogoplug:~# nc -lup 6666 192.168.0.2 6666 > invalid connection to [192.168.0.15] from > (UNKNOWN) [192.168.0.4] 49154 >
Re: Pogoplug Mobile Debian Install January 18, 2021 12:56PM |
Registered: 7 years ago Posts: 156 |
Quote
Your Pogo Mobile is 192.168.0.2, and your Pogo E02 as the netconsole server is 192.168.0.15.
There is a box with IP address 192.168.0.4 that wants to connect with the Pogo E02 after you started the server with nc command. This happens because that box must have been another Kirkwood/OXNAS box is running in your network and has neconsole setup!
So usually I just recall the nc command and execute again a few times, until it catches the connection from 192.168.0.2.
./fw_setenv serverip '192.168.0.8' #changed IP address back to what I want the E02 netconsole server to use
old: preboot_nc=run if_netconsole start_netconsole new: 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
[root@PogoplugMobile /etc]# ./fw_printenv 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 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=3960 machid=f78 usb_rootfstype=ext3 mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root) dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb bootcmd_pogo=if ubi part root 2048 && ubifsmount ubi:rootfs && ubifsload 0x800000 uboot.mtd0.dockstar.original.kwb ; then go 0x800200; fi bootcmd_exec=if run load_uimage; then; 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; fi bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_pogo ethaddr=00:25:31:03:49:49 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts 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.0.2 serverip=192.168.0.8
Re: Pogoplug Mobile Debian Install January 18, 2021 05:09PM |
Admin Registered: 13 years ago Posts: 18,569 |
> old: preboot_nc=run if_netconsole > start_netconsole > new: 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 >>
Quote
> start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
> if_netconsole=ping $serverip
> 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.0.2
> serverip=192.168.0.8
Re: Pogoplug Mobile Debian Install January 19, 2021 03:10PM |
Registered: 7 years ago Posts: 156 |
Netconsole Log when using SD card rootfs drive U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700) Pogoplug V4 gcc (Debian 6.3.0-18) 6.3.0 20170516 GNU ld (GNU Binutils for Debian) 2.28 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Reset IDE: ide_preinit failed MMC rescan: current device # 0 initialized OK ## 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 ## Unknown partition table type 0 loading envs from usb 0 ... ** Bad device usb 0 ** no IDE devices available Partition Map for MMC device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 61929472 fe673342-01 83 loading envs from mmc 0 ... ** File not found /boot/uEnv.txt ** running scan_disk ... Scan device usb device usb 0:1 ** Bad device usb 0 ** device usb 1:1 ** Bad device usb 1 ** device usb 2:1 ** Bad device usb 2 ** device usb 3:1 ** Bad device usb 3 ** Scan device ide Reset IDE: ide_preinit failed device ide 0:1 ** Bad device ide 0 ** device ide 1:1 ** Bad device ide 1 ** device ide 2:1 ** Bad device ide 2 ** device ide 3:1 ** Bad device ide 3 ** Scan device mmc MMC rescan: current device # 0 initialized OK device mmc 0:1 1 bytes read in 19 ms (0 Bytes/s) Found bootable drive on mmc 0 loading uImage ... 4963680 bytes read in 134 ms (35.3 MiB/s) loading uInitrd ... 9713936 bytes read in 234 ms (39.6 MiB/s) loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ... 9962 bytes read in 47 ms (206.1 KiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-5.2.9-kirkwood-tld-1 Created: 2019-08-25 2:22:31 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4963616 Bytes = 4.7 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-5.2.9-kirkwood-tld-1 Created: 2019-08-25 2:22:50 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9713872 Bytes = 9.3 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 01c00000 Booting using the fdt blob at 0x1c00000
Re: Pogoplug Mobile Debian Install January 19, 2021 03:47PM |
Admin Registered: 13 years ago Posts: 18,569 |
Quote
I got a segmentation fault on the SD card while running installing apt packages, so I'm guessing that's part of my problem.