thomas bollaert
Install U-boot on usb-stick? October 04, 2015 12:37PM |
thomas bollaert
Re: Install U-boot on usb-stick? October 04, 2015 12:40PM |
Re: Install U-boot on usb-stick? October 04, 2015 01:37PM |
Admin Registered: 13 years ago Posts: 18,564 |
dmesg cat /proc/mtd mount fw_printenv
Re: Install U-boot on usb-stick? October 04, 2015 02:26PM |
Registered: 8 years ago Posts: 4 |
Here we go again :roll: 1. Download a Linux Live CD (get kubuntu live cd, it's more like windows) 2. Burn and boot that cd on your PC (or use a USB flash drive, whatever works for you) 3. Connect the flash drive you want to boot from to this same PC 4.Go to K --> Applications --> System --> Partition Editor 5. Format this flash drive as ext3, label it "rootfs". Make sure rootfs partition is <=20GB. 6. After it's done formatting, remove and reinsert the flash drive. Open file manager and open this flash drive at least once (so it gets mounted) 7. Open terminal and copy paste the following (not everything together, but line by line) CODE: SELECT ALL sudo su cd /media/rootfs wget http://archlinuxarm.org/os/ArchLinuxARM-kirkwood-latest.tar.gz tar xvzf ArchLinuxARM-kirkwood-latest.tar.gz sync #may take a while cd / umount /media/rootfs
[ 10.498298] io scheduler cfq registered [ 10.498794] io scheduler bfq registered (default) [ 10.498803] BFQ I/O-scheduler: v7r8 [ 10.499015] mv_xor mv_xor.0: Marvell shared XOR driver [ 10.538636] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy ) [ 10.578651] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy ) [ 10.578886] mv_xor mv_xor.1: Marvell shared XOR driver [ 10.618638] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy ) [ 10.658634] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy ) [ 10.664141] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 10.665220] console [ttyS0] disabled [ 10.685332] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A [ 11.211203] console [ttyS0] enabled [ 11.228115] brd: module loaded [ 11.237241] loop: module loaded [ 11.241574] nand: Could not find valid ONFI parameter page; aborting [ 11.248077] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1 [ 11.254454] nand: Hynix NAND 128MiB 3,3V 8-bit [ 11.258941] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 11.266551] Scanning device for bad blocks [ 11.329753] Bad eraseblock 780 at 0x000006180000 [ 11.352799] 2 cmdlinepart partitions found on MTD device orion_nand [ 11.359110] Creating 2 MTD partitions on "orion_nand": [ 11.364279] 0x000000000000-0x000000100000 : "u-boot" [ 11.369773] 0x000000100000-0x000008000000 : "rootfs" [ 11.382269] libphy: orion_mdio_bus: probed [ 11.386489] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 12.468442] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:04:97:77 [ 12.477395] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 12.483983] ehci-pci: EHCI PCI platform driver [ 12.488534] ehci-orion: EHCI orion driver [ 12.492640] orion-ehci orion-ehci.0: EHCI Host Controller [ 12.498117] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1 [ 12.505876] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000 [ 12.527487] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00 [ 12.534436] hub 1-0:1.0: USB hub found [ 12.538290] hub 1-0:1.0: 1 port detected [ 12.542878] usbcore: registered new interface driver uas [ 12.548406] usbcore: registered new interface driver usb-storage [ 12.554495] usbcore: registered new interface driver ums-alauda [ 12.560539] usbcore: registered new interface driver ums-cypress [ 12.566629] usbcore: registered new interface driver ums-datafab [ 12.572734] usbcore: registered new interface driver ums_eneub6250 [ 12.579018] usbcore: registered new interface driver ums-freecom [ 12.585099] usbcore: registered new interface driver ums-isd200 [ 12.591122] usbcore: registered new interface driver ums-jumpshot [ 12.597289] usbcore: registered new interface driver ums-karma [ 12.603226] usbcore: registered new interface driver ums-onetouch [ 12.609437] usbcore: registered new interface driver ums-realtek [ 12.615525] usbcore: registered new interface driver ums-sddr09 [ 12.621546] usbcore: registered new interface driver ums-sddr55 [ 12.627561] usbcore: registered new interface driver ums-usbat [ 12.633845] mousedev: PS/2 mouse device common for all mice [ 12.857486] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 13.010115] hub 1-1:1.0: USB hub found [ 13.014262] hub 1-1:1.0: 4 ports detected [ 13.297481] usb 1-1.1: new high-speed USB device number 3 using orion-ehci [ 13.409659] usb-storage 1-1.1:1.0: USB Mass Storage device detected [ 13.416273] scsi host0: usb-storage 1-1.1:1.0 [ 13.497483] usb 1-1.2: new high-speed USB device number 4 using orion-ehci [ 13.647479] rtc-mv rtc-mv: internal RTC not ticking [ 13.652523] i2c /dev entries driver [ 13.656637] sdhci: Secure Digital Host Controller Interface driver [ 13.662875] sdhci: Copyright(c) Pierre Ossman [ 13.667320] sdhci-pltfm: SDHCI platform and OF driver helper [ 13.673552] ledtrig-cpu: registered to indicate activity on CPUs [ 13.679822] usbcore: registered new interface driver r8712u [ 13.685667] gre: GRE over IPv4 demultiplexor driver [ 13.690670] NET: Registered protocol family 17 [ 13.695195] Key type dns_resolver registered [ 13.700517] registered taskstats version 1 [ 13.706699] Key type encrypted registered [ 13.711615] console [netcon0] enabled [ 13.715358] netconsole: network logging started [ 13.720167] hctosys: unable to open rtc device (rtc0) [ 13.726917] usb-storage 1-1.2:1.0: USB Mass Storage device detected [ 13.734023] usb-storage 1-1.2:1.0: Quirks match for vid 174c pid 55aa: 400000 [ 13.741339] scsi host1: usb-storage 1-1.2:1.0 [ 13.746579] Waiting for root device /dev/sda1... [ 13.827485] usb 1-1.3: new high-speed USB device number 5 using orion-ehci [ 14.030677] usb-storage 1-1.3:1.0: USB Mass Storage device detected [ 14.037176] usb-storage 1-1.3:1.0: Quirks match for vid 174c pid 55aa: 400000 [ 14.044458] scsi host2: usb-storage 1-1.3:1.0 [ 14.127483] usb 1-1.4: new high-speed USB device number 6 using orion-ehci [ 14.243420] usb-storage 1-1.4:1.0: USB Mass Storage device detected [ 14.250005] scsi host3: usb-storage 1-1.4:1.0 [ 14.418491] scsi 0:0:0:0: Direct-Access SanDisk Ultra 1.00 PQ: 0 ANSI: 6 [ 14.427936] sd 0:0:0:0: [sda] 30375936 512-byte logical blocks: (15.5 GB/14.4 GiB) [ 14.435811] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 14.441673] sd 0:0:0:0: [sda] Write Protect is off [ 14.446508] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00 [ 14.447246] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 14.461356] sda: sda1 [ 14.466666] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 14.518926] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem [ 14.738233] scsi 1:0:0:0: Direct-Access WDC WD20 EZRX-00D8PB0 80.0 PQ: 0 ANSI: 5 [ 14.748121] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB) [ 14.756098] sd 1:0:0:0: Attached scsi generic sg1 type 0 [ 14.762554] sd 1:0:0:0: [sdb] Write Protect is off [ 14.768208] EXT4-fs (sda1): recovery complete [ 14.773091] sd 1:0:0:0: [sdb] Mode Sense: 23 00 00 00 [ 14.773813] sd 1:0:0:0: [sdb] No Caching mode page found [ 14.779259] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) [ 14.787010] VFS: Mounted root (ext3 filesystem) on device 8:1. [ 14.792913] sd 1:0:0:0: [sdb] Assuming drive cache: write through [ 14.808831] devtmpfs: mounted [ 15.048225] scsi 2:0:0:0: Direct-Access WDC WD20 EZRX-00DC0B0 80.0 PQ: 0 ANSI: 5 [ 15.057878] sd 2:0:0:0: Attached scsi generic sg2 type 0 [ 15.063285] sd 2:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB) [ 15.072293] sd 2:0:0:0: [sdc] Write Protect is off [ 15.077118] sd 2:0:0:0: [sdc] Mode Sense: 23 00 00 00 [ 15.077791] sd 2:0:0:0: [sdc] No Caching mode page found [ 15.083132] sd 2:0:0:0: [sdc] Assuming drive cache: write through [ 15.251719] scsi 3:0:0:0: Direct-Access ST350041 8AS PQ: 0 ANSI: 2 [ 15.261250] sd 3:0:0:0: Attached scsi generic sg3 type 0 [ 15.266809] sd 3:0:0:0: [sdd] 976773168 512-byte logical blocks: (500 GB/465 GiB) [ 15.276918] sd 3:0:0:0: [sdd] Write Protect is off [ 15.281793] sd 3:0:0:0: [sdd] Mode Sense: 38 00 00 00 [ 15.284040] sd 3:0:0:0: [sdd] No Caching mode page found [ 15.289425] sd 3:0:0:0: [sdd] Assuming drive cache: write through [ 19.180616] sdd: sdd1 [ 19.189170] sd 3:0:0:0: [sdd] Attached SCSI disk [ 19.278164] sdb: sdb1 [ 19.283543] sd 1:0:0:0: [sdb] Attached SCSI disk [ 19.666794] sdc: sdc1 < sdc5 sdc6 > [ 19.673679] sd 2:0:0:0: [sdc] Attached SCSI disk [ 19.679188] Freeing unused kernel memory: 264K (c075a000 - c079c000) [ 20.069468] NET: Registered protocol family 10 [ 20.091305] ip_tables: (C) 2000-2006 Netfilter Core Team [ 20.113653] random: systemd urandom read with 88 bits of entropy available [ 20.138360] systemd[1]: systemd 226 running in system mode. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN) [ 20.156823] systemd[1]: Detected architecture arm. [ 20.178801] systemd[1]: Set hostname to <pogoplug>. [ 21.007164] systemd[1]: display-manager.service: Cannot add dependency job, ignoring: Unit display-manager.service failed to load: No such file or directory. [ 21.028407] systemd[1]: Listening on LVM2 metadata daemon socket. [ 21.057778] systemd[1]: Reached target Remote File Systems. [ 21.088666] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. [ 21.117996] systemd[1]: Listening on udev Control Socket. [ 21.147946] systemd[1]: Listening on Device-mapper event daemon FIFOs. [ 21.197942] systemd[1]: Created slice System Slice. [ 21.218930] systemd[1]: Created slice system-getty.slice. [ 21.248285] systemd[1]: Listening on networkd rtnetlink socket. [ 21.278121] systemd[1]: Listening on Journal Socket. [ 21.305347] systemd[1]: Mounting FUSE Control File System... [ 21.348717] systemd[1]: Starting Remount Root and Kernel File Systems... [ 21.440540] systemd[1]: Mounting Temporary Directory... [ 21.460833] systemd[1]: Starting Create list of required static device nodes for the current kernel... [ 21.511704] systemd[1]: Starting Setup Virtual Console... [ 21.544761] systemd[1]: Mounting POSIX Message Queue File System... [ 21.587756] systemd[1]: Reached target Swap. [ 21.608095] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 21.637986] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. [ 21.671670] systemd[1]: Starting Apply Kernel Variables... [ 21.682816] random: nonblocking pool is initialized [ 21.709348] systemd[1]: Created slice system-serial\x2dgetty.slice. [ 21.742035] systemd[1]: Mounting Debug File System... [ 21.778028] systemd[1]: Listening on Journal Socket (/dev/log). [ 21.811712] systemd[1]: Starting Journal Service... [ 21.822757] systemd[1]: Reached target Encrypted Volumes. [ 21.836424] systemd[1]: Created slice system-devmon.slice. [ 21.858888] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ 21.875462] systemd[1]: Reached target Paths. [ 21.886792] systemd[1]: Created slice User and Session Slice. [ 21.907835] systemd[1]: Reached target Slices. [ 21.928036] systemd[1]: Listening on udev Kernel Socket. [ 21.962360] systemd[1]: Mounted POSIX Message Queue File System. [ 21.988168] systemd[1]: Mounted Debug File System. [ 21.998855] systemd-journald[123]: File /var/log/journal/a58e67019c8046f09611040fba1b8e72/system.journal corrupted or uncleanly shut down, renaming and replacing. [ 22.013893] systemd[1]: Mounted FUSE Control File System. [ 22.037944] systemd[1]: Mounted Temporary Directory. [ 22.050698] systemd[1]: Started Remount Root and Kernel File Systems. [ 22.090152] systemd[1]: Started Create list of required static device nodes for the current kernel. [ 22.139493] systemd[1]: Started Setup Virtual Console. [ 22.160100] systemd[1]: Started Apply Kernel Variables. [ 22.606254] systemd[1]: Started Journal Service. [ 23.251311] systemd-journald[123]: Received request to flush runtime journal from PID 1 [ 31.828056] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 33.384383] EXT4-fs (sdb1): recovery complete [ 33.398955] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null) [ 34.329736] EXT4-fs (sdc5): mounting ext3 file system using the ext4 subsystem [ 34.399071] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 34.409029] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 34.507653] EXT4-fs (sdc5): warning: maximal mount count reached, running e2fsck is recommended [ 34.638814] EXT4-fs (sdc5): recovery complete [ 34.643819] EXT4-fs (sdc5): mounted filesystem with ordered data mode. Opts: (null) [ 35.436114] EXT4-fs (sdd1): mounting ext3 file system using the ext4 subsystem [ 37.504879] EXT4-fs (sdd1): warning: maximal mount count reached, running e2fsck is recommended [ 38.137085] EXT4-fs (sdd1): recovery complete [ 38.142232] EXT4-fs (sdd1): mounted filesystem with ordered data mode. Opts: (null) [root@pogoplug tmp]#
[root@pogoplug tmp]# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 07f00000 00020000 "rootfs" [root@pogoplug tmp]#
[root@pogoplug tmp]# mount /dev/sda1 on / type ext3 (rw,relatime,data=ordered) devtmpfs on /dev type devtmpfs (rw,relatime,size=125332k,nr_inodes=31333,mode=755) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755) tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd) cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/bfqio type cgroup (rw,nosuid,nodev,noexec,relatime,bfqio) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=0,minproto=5,maxproto=5,direct) fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) tmpfs on /tmp type tmpfs (rw) mqueue on /dev/mqueue type mqueue (rw,relatime) debugfs on /sys/kernel/debug type debugfs (rw,relatime) /dev/sdb1 on /media/Icarus type ext4 (rw,nosuid,nodev,noexec,noatime,data=ordered) /dev/sdc5 on /media/Fileserver type ext3 (rw,nosuid,nodev,noexec,noatime,errors=remount-ro,data=ordered) /dev/sdd1 on /media/HD Magali type ext3 (rw,nosuid,nodev,noexec,noatime,errors=remount-ro,data=ordered) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=25096k,mode=700,uid=1000,gid=1000) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime) tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime)
[root@pogoplug tmp]# fw_printenv bash: fw_printenv: command not found [root@pogoplug tmp]#
Re: Install U-boot on usb-stick? October 04, 2015 05:08PM |
Admin Registered: 13 years ago Posts: 18,564 |
# MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
Re: Install U-boot on usb-stick? October 05, 2015 04:17PM |
Registered: 8 years ago Posts: 4 |
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Memory: 250664K/262144K available (5805K kernel code, 428K rwdata, 1688K rodata, 264K init, 712K bss, 11480K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xd0800000 - 0xff000000 ( 744 MB) lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc0759930 (7495 kB) .init : 0xc075a000 - 0xc079c000 ( 264 kB) .data : 0xc079c000 - 0xc0807254 ( 429 kB) .bss : 0xc0807254 - 0xc08b94ec ( 713 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.000014] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns [ 10.243624] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns [ 10.243809] Console: colour dummy device 80x30 [ 10.243835] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584) [ 10.333708] pid_max: default: 32768 minimum: 301 [ 10.333801] Security Framework initialized [ 10.333875] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 10.333894] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 10.334595] Initializing cgroup subsys blkio [ 10.334625] Initializing cgroup subsys memory [ 10.334688] Initializing cgroup subsys devices [ 10.334716] Initializing cgroup subsys freezer [ 10.334736] Initializing cgroup subsys net_cls [ 10.334753] Initializing cgroup subsys bfqio [ 10.334771] Initializing cgroup subsys perf_event [ 10.334792] Initializing cgroup subsys net_prio [ 10.334869] CPU: Testing write buffer coherency: ok [ 10.335309] Setting up static identity map for 0x81e0 - 0x8238 [ 10.337187] devtmpfs: initialized [ 10.339653] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 10.340083] pinctrl core: initialized pinctrl subsystem [ 10.340790] NET: Registered protocol family 16 [ 10.341251] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 10.363716] cpuidle: using governor ladder [ 10.393712] cpuidle: using governor menu [ 10.393869] Kirkwood: MV88F6281-A0, TCLK=200000000. [ 10.393895] Feroceon L2: Enabling L2 [ 10.393934] Feroceon L2: Cache support initialised. [ 10.394685] initial MPP regs: 01111111 11113322 00001111 00100000 00000000 00000000 00000000 [ 10.394713] final MPP regs: 01111111 11113322 00001111 00000000 00000000 00000000 00000000 [ 10.425219] vgaarb: loaded [ 10.425543] SCSI subsystem initialized [ 10.425725] libata version 3.00 loaded. [ 10.426048] usbcore: registered new interface driver usbfs [ 10.426124] usbcore: registered new interface driver hub [ 10.426191] usbcore: registered new device driver usb [ 10.426353] pps_core: LinuxPPS API ver. 1 registered [ 10.426363] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 10.426397] PTP clock support registered [ 10.427457] clocksource: Switched to clocksource orion_clocksource [ 10.458507] FS-Cache: Loaded [ 10.471607] NET: Registered protocol family 2 [ 10.472390] TCP established hash table entries: 2048 (order: 1, 8192 bytes) [ 10.472429] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [ 10.472459] TCP: Hash tables configured (established 2048 bind 2048) [ 10.472530] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 10.472553] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 10.472750] NET: Registered protocol family 1 [ 10.472807] PCI: CLS 0 bytes, default 32 [ 10.474866] futex hash table entries: 256 (order: -1, 3072 bytes) [ 10.487787] VFS: Disk quotas dquot_6.6.0 [ 10.488056] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 10.490089] jffs2: version 2.2. (NAND) \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc. [ 10.491150] fuse init (API version 7.23) [ 10.497964] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250) [ 10.497988] io scheduler noop registered [ 10.498002] io scheduler deadline registered [ 10.498298] io scheduler cfq registered [ 10.498794] io scheduler bfq registered (default) [ 10.498803] BFQ I/O-scheduler: v7r8 [ 10.499015] mv_xor mv_xor.0: Marvell shared XOR driver [ 10.538636] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy ) [ 10.578651] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy ) [ 10.578886] mv_xor mv_xor.1: Marvell shared XOR driver [ 10.618638] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy ) [ 10.658634] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy ) [ 10.664141] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 10.665220] console [ttyS0] disabled [ 10.685332] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A [ 11.211203] console [ttyS0] enabled [ 11.228115] brd: module loaded [ 11.237241] loop: module loaded [ 11.241574] nand: Could not find valid ONFI parameter page; aborting [ 11.248077] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1 [ 11.254454] nand: Hynix NAND 128MiB 3,3V 8-bit [ 11.258941] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 11.266551] Scanning device for bad blocks [ 11.329753] Bad eraseblock 780 at 0x000006180000 [ 11.352799] 2 cmdlinepart partitions found on MTD device orion_nand [ 11.359110] Creating 2 MTD partitions on "orion_nand": [ 11.364279] 0x000000000000-0x000000100000 : "u-boot" [ 11.369773] 0x000000100000-0x000008000000 : "rootfs" [ 11.382269] libphy: orion_mdio_bus: probed [ 11.386489] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 12.468442] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:04:97:77 [ 12.477395] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 12.483983] ehci-pci: EHCI PCI platform driver [ 12.488534] ehci-orion: EHCI orion driver [ 12.492640] orion-ehci orion-ehci.0: EHCI Host Controller [ 12.498117] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1 [ 12.505876] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000 [ 12.527487] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00 [ 12.534436] hub 1-0:1.0: USB hub found [ 12.538290] hub 1-0:1.0: 1 port detected [ 12.542878] usbcore: registered new interface driver uas [ 12.548406] usbcore: registered new interface driver usb-storage [ 12.554495] usbcore: registered new interface driver ums-alauda [ 12.560539] usbcore: registered new interface driver ums-cypress [ 12.566629] usbcore: registered new interface driver ums-datafab [ 12.572734] usbcore: registered new interface driver ums_eneub6250 [ 12.579018] usbcore: registered new interface driver ums-freecom [ 12.585099] usbcore: registered new interface driver ums-isd200 [ 12.591122] usbcore: registered new interface driver ums-jumpshot [ 12.597289] usbcore: registered new interface driver ums-karma [ 12.603226] usbcore: registered new interface driver ums-onetouch [ 12.609437] usbcore: registered new interface driver ums-realtek [ 12.615525] usbcore: registered new interface driver ums-sddr09 [ 12.621546] usbcore: registered new interface driver ums-sddr55 [ 12.627561] usbcore: registered new interface driver ums-usbat [ 12.633845] mousedev: PS/2 mouse device common for all mice [ 12.857486] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 13.010115] hub 1-1:1.0: USB hub found [ 13.014262] hub 1-1:1.0: 4 ports detected [ 13.297481] usb 1-1.1: new high-speed USB device number 3 using orion-ehci [ 13.409659] usb-storage 1-1.1:1.0: USB Mass Storage device detected [ 13.416273] scsi host0: usb-storage 1-1.1:1.0 [ 13.497483] usb 1-1.2: new high-speed USB device number 4 using orion-ehci [ 13.647479] rtc-mv rtc-mv: internal RTC not ticking [ 13.652523] i2c /dev entries driver [ 13.656637] sdhci: Secure Digital Host Controller Interface driver [ 13.662875] sdhci: Copyright(c) Pierre Ossman [ 13.667320] sdhci-pltfm: SDHCI platform and OF driver helper [ 13.673552] ledtrig-cpu: registered to indicate activity on CPUs [ 13.679822] usbcore: registered new interface driver r8712u [ 13.685667] gre: GRE over IPv4 demultiplexor driver [ 13.690670] NET: Registered protocol family 17 [ 13.695195] Key type dns_resolver registered [ 13.700517] registered taskstats version 1 [ 13.706699] Key type encrypted registered [ 13.711615] console [netcon0] enabled [ 13.715358] netconsole: network logging started [ 13.720167] hctosys: unable to open rtc device (rtc0) [ 13.726917] usb-storage 1-1.2:1.0: USB Mass Storage device detected [ 13.734023] usb-storage 1-1.2:1.0: Quirks match for vid 174c pid 55aa: 400000 [ 13.741339] scsi host1: usb-storage 1-1.2:1.0 [ 13.746579] Waiting for root device /dev/sda1... [ 13.827485] usb 1-1.3: new high-speed USB device number 5 using orion-ehci [ 14.030677] usb-storage 1-1.3:1.0: USB Mass Storage device detected [ 14.037176] usb-storage 1-1.3:1.0: Quirks match for vid 174c pid 55aa: 400000 [ 14.044458] scsi host2: usb-storage 1-1.3:1.0 [ 14.127483] usb 1-1.4: new high-speed USB device number 6 using orion-ehci [ 14.243420] usb-storage 1-1.4:1.0: USB Mass Storage device detected [ 14.250005] scsi host3: usb-storage 1-1.4:1.0 [ 14.418491] scsi 0:0:0:0: Direct-Access SanDisk Ultra 1.00 PQ: 0 ANSI: 6 [ 14.427936] sd 0:0:0:0: [sda] 30375936 512-byte logical blocks: (15.5 GB/14.4 GiB) [ 14.435811] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 14.441673] sd 0:0:0:0: [sda] Write Protect is off [ 14.446508] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00 [ 14.447246] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 14.461356] sda: sda1 [ 14.466666] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 14.518926] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem [ 14.738233] scsi 1:0:0:0: Direct-Access WDC WD20 EZRX-00D8PB0 80.0 PQ: 0 ANSI: 5 [ 14.748121] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB) [ 14.756098] sd 1:0:0:0: Attached scsi generic sg1 type 0 [ 14.762554] sd 1:0:0:0: [sdb] Write Protect is off [ 14.768208] EXT4-fs (sda1): recovery complete [ 14.773091] sd 1:0:0:0: [sdb] Mode Sense: 23 00 00 00 [ 14.773813] sd 1:0:0:0: [sdb] No Caching mode page found [ 14.779259] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) [ 14.787010] VFS: Mounted root (ext3 filesystem) on device 8:1. [ 14.792913] sd 1:0:0:0: [sdb] Assuming drive cache: write through [ 14.808831] devtmpfs: mounted [ 15.048225] scsi 2:0:0:0: Direct-Access WDC WD20 EZRX-00DC0B0 80.0 PQ: 0 ANSI: 5 [ 15.057878] sd 2:0:0:0: Attached scsi generic sg2 type 0 [ 15.063285] sd 2:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB) [ 15.072293] sd 2:0:0:0: [sdc] Write Protect is off [ 15.077118] sd 2:0:0:0: [sdc] Mode Sense: 23 00 00 00 [ 15.077791] sd 2:0:0:0: [sdc] No Caching mode page found [ 15.083132] sd 2:0:0:0: [sdc] Assuming drive cache: write through [ 15.251719] scsi 3:0:0:0: Direct-Access ST350041 8AS PQ: 0 ANSI: 2 [ 15.261250] sd 3:0:0:0: Attached scsi generic sg3 type 0 [ 15.266809] sd 3:0:0:0: [sdd] 976773168 512-byte logical blocks: (500 GB/465 GiB) [ 15.276918] sd 3:0:0:0: [sdd] Write Protect is off [ 15.281793] sd 3:0:0:0: [sdd] Mode Sense: 38 00 00 00 [ 15.284040] sd 3:0:0:0: [sdd] No Caching mode page found [ 15.289425] sd 3:0:0:0: [sdd] Assuming drive cache: write through [ 19.180616] sdd: sdd1 [ 19.189170] sd 3:0:0:0: [sdd] Attached SCSI disk [ 19.278164] sdb: sdb1 [ 19.283543] sd 1:0:0:0: [sdb] Attached SCSI disk [ 19.666794] sdc: sdc1 < sdc5 sdc6 > [ 19.673679] sd 2:0:0:0: [sdc] Attached SCSI disk [ 19.679188] Freeing unused kernel memory: 264K (c075a000 - c079c000) [ 20.069468] NET: Registered protocol family 10 [ 20.091305] ip_tables: (C) 2000-2006 Netfilter Core Team [ 20.113653] random: systemd urandom read with 88 bits of entropy available [ 20.138360] systemd[1]: systemd 226 running in system mode. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN) [ 20.156823] systemd[1]: Detected architecture arm. [ 20.178801] systemd[1]: Set hostname to <pogoplug>. [ 21.007164] systemd[1]: display-manager.service: Cannot add dependency job, ignoring: Unit display-manager.service failed to load: No such file or directory. [ 21.028407] systemd[1]: Listening on LVM2 metadata daemon socket. [ 21.057778] systemd[1]: Reached target Remote File Systems. [ 21.088666] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. [ 21.117996] systemd[1]: Listening on udev Control Socket. [ 21.147946] systemd[1]: Listening on Device-mapper event daemon FIFOs. [ 21.197942] systemd[1]: Created slice System Slice. [ 21.218930] systemd[1]: Created slice system-getty.slice. [ 21.248285] systemd[1]: Listening on networkd rtnetlink socket. [ 21.278121] systemd[1]: Listening on Journal Socket. [ 21.305347] systemd[1]: Mounting FUSE Control File System... [ 21.348717] systemd[1]: Starting Remount Root and Kernel File Systems... [ 21.440540] systemd[1]: Mounting Temporary Directory... [ 21.460833] systemd[1]: Starting Create list of required static device nodes for the current kernel... [ 21.511704] systemd[1]: Starting Setup Virtual Console... [ 21.544761] systemd[1]: Mounting POSIX Message Queue File System... [ 21.587756] systemd[1]: Reached target Swap. [ 21.608095] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 21.637986] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. [ 21.671670] systemd[1]: Starting Apply Kernel Variables... [ 21.682816] random: nonblocking pool is initialized [ 21.709348] systemd[1]: Created slice system-serial\x2dgetty.slice. [ 21.742035] systemd[1]: Mounting Debug File System... [ 21.778028] systemd[1]: Listening on Journal Socket (/dev/log). [ 21.811712] systemd[1]: Starting Journal Service... [ 21.822757] systemd[1]: Reached target Encrypted Volumes. [ 21.836424] systemd[1]: Created slice system-devmon.slice. [ 21.858888] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ 21.875462] systemd[1]: Reached target Paths. [ 21.886792] systemd[1]: Created slice User and Session Slice. [ 21.907835] systemd[1]: Reached target Slices. [ 21.928036] systemd[1]: Listening on udev Kernel Socket. [ 21.962360] systemd[1]: Mounted POSIX Message Queue File System. [ 21.988168] systemd[1]: Mounted Debug File System. [ 21.998855] systemd-journald[123]: File /var/log/journal/a58e67019c8046f09611040fba1b8e72/system.journal corrupted or uncleanly shut down, renaming and replacing. [ 22.013893] systemd[1]: Mounted FUSE Control File System. [ 22.037944] systemd[1]: Mounted Temporary Directory. [ 22.050698] systemd[1]: Started Remount Root and Kernel File Systems. [ 22.090152] systemd[1]: Started Create list of required static device nodes for the current kernel. [ 22.139493] systemd[1]: Started Setup Virtual Console. [ 22.160100] systemd[1]: Started Apply Kernel Variables. [ 22.606254] systemd[1]: Started Journal Service. [ 23.251311] systemd-journald[123]: Received request to flush runtime journal from PID 1 [ 31.828056] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 33.384383] EXT4-fs (sdb1): recovery complete [ 33.398955] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null) [ 34.329736] EXT4-fs (sdc5): mounting ext3 file system using the ext4 subsystem [ 34.399071] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 34.409029] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 34.507653] EXT4-fs (sdc5): warning: maximal mount count reached, running e2fsck is recommended [ 34.638814] EXT4-fs (sdc5): recovery complete [ 34.643819] EXT4-fs (sdc5): mounted filesystem with ordered data mode. Opts: (null) [ 35.436114] EXT4-fs (sdd1): mounting ext3 file system using the ext4 subsystem [ 37.504879] EXT4-fs (sdd1): warning: maximal mount count reached, running e2fsck is recommended [ 38.137085] EXT4-fs (sdd1): recovery complete [ 38.142232] EXT4-fs (sdd1): mounted filesystem with ordered data mode. Opts: (null) [root@pogoplug /]#
Linux pogoplug 4.2.2-1-ARCH #1 PREEMPT Thu Oct 1 06:28:12 MDT 2015 armv5tel GNU/ Linux
Quote
Bodhi
This is not true. You need to install mtd-utils before you have fw_printenv/fw_setenv command available. And while you at this, print the content of the fw_environment.cfg file (where the u-boot envs are defined in Linux), it should look like below:
cat /etc/fw_env.config
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
Re: Install U-boot on usb-stick? October 05, 2015 07:33PM |
Admin Registered: 13 years ago Posts: 18,564 |
Re: Install U-boot on usb-stick? October 07, 2015 02:37PM |
Registered: 8 years ago Posts: 4 |
[root@pogoplug alarm]# fw_printenv baudrate=115200 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; bootdelay=3 bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr}; bootz=echo Booting from ${disk} ...; run setargs; bootz ${loadaddr} - ${fdt_addr}; console=ttyS0 fdt_addr=0x800000 fdt_file=/boot/dtbs/kirkwood-pogo_e02.dtb importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesize load=echo Attempting to boot from ${type} ${disk}:1...;if run loadbootenv; then run importbootenv;fi;echo Checking if uenvcmd is set ...;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;echo Running default loadzimage ...;if run loadzimage; then run loadfdt;run bootz;fi;echo Running default loaduimage ...;if run loaduimage; then run bootm;fi; loadaddr=0x810000 loadbootenv=load ${type} ${disk}:1 ${loadaddr} /boot/uEnv.txt loadfdt=load ${type} ${disk}:1 ${fdt_addr} ${fdt_file} loaduimage=load ${type} ${disk}:1 ${loadaddr} ${uimage} loadzimage=load ${type} ${disk}:1 ${loadaddr} ${zimage} mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs) setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts} uimage=/boot/uImage zimage=/boot/zImage ethaddr=00:25:31:04:97:77 serverip=192.168.1.3 ipaddr=192.168.1.6 if_netconsole=ping $serverip start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; preboot=run if_netconsole start_netconsole [root@pogoplug alarm]#
nc -ul 6666
Re: Install U-boot on usb-stick? October 08, 2015 12:45AM |
Admin Registered: 13 years ago Posts: 18,564 |
nc -lup 6666 192.168.1.6 6666
nc -kup 6666 192.168.1.6 6666
Re: Install U-boot on usb-stick? October 09, 2015 08:51AM |
Registered: 8 years ago Posts: 4 |
thomas@thomas-GA-770T-USB3:~$ nc -lup 6666 192.168.1.2 6666 U-Boot 2015.07-3 (Sep 05 2015 - 21:45:03 -0600) Arch Linux ARM Pogo E02 gcc (GCC) 5.2.0 GNU ld (GNU Binutils) 2.25.1 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 6 USB Device(s) found scanning usb for storage devices... 4 Storage Device(s) found USB device 0: Device 0: Vendor: SanDisk Rev: 1.00 Prod: Ultra Type: Removable Hard Disk Capacity: 14832.0 MB = 14.4 GB (30375936 x 512) ... is now current device usb found on device 0 Checking for: /boot/uEnv.txt ... ** File not found /boot/zImage ** 4079344 bytes read in 250 ms (15.6 MiB/s) loading /boot/dtbs/kirkwood-pogo_e02.dtb ... ** File not found /boot/dtbs/kirkwood-pogo_e02.dtb ** ** File not found /boot/initramfs-linux.img ** ## Booting kernel from Legacy Image at 00810000 ... Image Name: Linux-4.2.2-1-ARCH Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4079280 Bytes = 3.9 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK