Quantcast
Channel: Linux Device Hacking - uBoot
Viewing all 901 articles
Browse latest View live

Install u-boot on NSA310 question (9 replies)

$
0
0
Hi,
I have Zyxel NSA-310 and I have installed :
U-Boot 2015.10-tld-1 (Nov 06 2015 - 16:19:43 -0800)
ZyXEL NSA310 1-Bay Power Media Server


Can I upgrade to the latest version of uboot "2016.05 U-Boot Kirkwood" if I have below settings:

root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 08000000 00020000 "orion_nand"
root@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
root@debian:~#


Can I follow steps describe in your tutorial or i should first fix something ?

My orginal MTDs on factory uboot was:
/e-data/78f7ce49-2f3d-484f-a9d4-e24f88443e5d/root/tools # cat /proc/mtd

dev:    size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00080000 00020000 "uboot_env"
mtd2: 00080000 00020000 "key_store"
mtd3: 00080000 00020000 "info"
mtd4: 00a00000 00020000 "etc"
mtd5: 00a00000 00020000 "kernel_1"
mtd6: 02fc0000 00020000 "rootfs1"
mtd7: 00a00000 00020000 "kernel_2"
mtd8: 02fc0000 00020000 "rootfs2"

OpenWRT 2nd stage u-boot problems on Pogoplug-E02 (8 replies)

$
0
0
As per the instructions at "https://wiki.openwrt.org/toh/cloudengines/pogoplug" I flashed the OpenWRT 2nd stage u-boot onto my Pogoplug-E02 to be chainloaded by the stock Cloud Engines u-boot.

After flashing and doing the "reset" the Pogoplug did indeed chainload the OpenWRT u-boot but it then hangs at the following point:

USB 0: host mode                                                                
PEX 0: interface detected no Link.                                              
Net:   egiga0 [PRIME], egiga1                                                   
Hit any key to stop autoboot:  0                                                
                                                                                
NAND read: device 0 offset 0x100000, size 0x200000                              
                                                                                
Reading data from 0x2ff800 -- 100% complete.                                    
 2097152 bytes read: OK                                                         
## Booting image at 00800000 ...                                                
   Image Name:   OpenWrt Das U-Boot uImage                                      
   Created:      2016-01-02   1:38:50 UTC                                       
   Image Type:   ARM Linux Kernel Image (uncompressed)                          
   Data Size:    454856 Bytes = 444.2 kB                                        
   Load Address: 00600000                                                       
   Entry Point:  00600000                                                       
   Verifying Checksum ... OK

I've posted a question about this on the OpenWRT formus but thought I'd also post here as well. I'm wondering if there's an issue with the current environment variable settings.

The OpenWRT u-boot version appears to be 2014.10 (based on doing a "strings" on the binary.

Here's the output of my flashing the 2nd stage OpenWRT u-boot from the stock u-boot (including a list of environment variables) and then output after rebooting. Note: I have obscured IPs and MAC address in this output:

CE>> setenv ipaddr 100.2.3.3
CE>> setenv serverip 100.2.3.5
CE>> setenv netmask 255.255.255.0
CE>> printenv                                                                   
baudrate=115200                                               
loads_echo=0                                                                    
rootpath=/mnt/ARM_FS/                                                           
run_diag=yes                                                                    
console=console=ttyS0,115200                                                    
CASset=min                                                                      
MALLOC_len=1                                                                    
ethprime=egiga0                                                                 
bootargs_root=root=/dev/mtdblock2 ro                                            
ethmtu=1500                                                                     
usb0Mode=host                                                                   
nandEcc=1bit                                                                    
ethact=egiga0                                                                   
bootargs=console=ttyS0,115200 root=/dev/mtdblock2 ro
ethaddr=00:01:02:03:04:05
cesvcid=ABCDEFGHIJKLMNOPQRS
ceboardver=PPV2                                                                 
bootcmd=nand read.e 0x800000 0x100000 0x200000; setenv bootargs $(console) $(bo0
stdin=serial                                                                    
stdout=serial                                                                   
stderr=serial                                                                   
mainlineLinux=no                                                                
enaMonExt=no                                                                    
enaCpuStream=no                                                                 
enaWrAllo=no                                                                    
pexMode=RC                                                                      
disL2Cache=no                                                                   
setL2CacheWT=yes                                                                
disL2Prefetch=yes                                                               
enaICPref=yes                                                                   
enaDCPref=yes                                                                   
sata_dma_mode=yes                                                               
netbsd_en=no                                                                    
vxworks_en=no                                                                   
bootdelay=3
disaMvPnp=no                                                                    
serverip=100.2.3.5                           
netmask=255.255.255.0                                                           
ipaddr=100.2.3.3

Environment size: 799/131068 bytes                                              
CE>> mw 0x800000 0xffff 0x80000                                                 
CE>> tftpboot 0x800000 openwrt-kirkwood-pogo_e02_second_stage-u-boot.img        
Using egiga0 device                                                             
TFTP from server 100.2.3.5; our IP address is 100.2.3.3
Filename 'openwrt-kirkwood-pogo_e02_second_stage-u-boot.img'.                   
Load address: 0x800000                                                          
Loading: #################################################################      
         ########################                                               
done                                                                            
Bytes transferred = 454920 (6f108 hex)                                          
CE>> nand erase 0x100000 0x80000                                                
                                                                                
NAND erase: device 0 offset 0x100000, size 0x80000                              
Erasing at 0x160000 -- 100% complete.                                           
OK                                                                              
CE>> nand write.e 0x800000 0x100000 0x80000                                     
                                                                                
NAND write: device 0 offset 0x100000, size 0x80000                              
                                                                                
Writing data at 0x17f800 -- 100% complete.                                      
 524288 bytes written: OK                                                       
                                                                                
Environment size: 830/131068 bytes                                              
CE>> reset                                                                      
                                                                                
                                                                                
U-Boot 1.1.4 (Sep 28 2009 - 11:55:23) Cloud Engines v2.0 (3.4.16)               
                                                                                
U-Boot code: 00600000 -> 0067FFF0  BSS: -> 00690D60                             
                                                                                
Soc: 88F6281 A0 (DDR2)                                                          
CPU running @ 1200Mhz L2 running @ 400Mhz                                       
SysClock = 400Mhz , TClock = 200Mhz                                             
                                                                                
DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6                                   
DRAM CS[0] base 0x00000000   size 256MB                                         
DRAM Total size 256MB  16bit width                                              
Flash:  0 kB                                                                    
Addresses 8M - 0M are saved for the U-Boot usage.                               
Mem malloc Initialization (8M - 7M): Done                                       
NAND:128 MB

CPU : Marvell Feroceon (Rev 1)                                                  
CLOUD ENGINES BOARD: PPV2                                                       
                                                                                
Streaming disabled                                                              
Write allocate disabled                                                         
                                                                                
                                                                                
USB 0: host mode                                                                
PEX 0: interface detected no Link.                                              
Net:   egiga0 [PRIME], egiga1                                                   
Hit any key to stop autoboot:  0                                                
                                                                                
NAND read: device 0 offset 0x100000, size 0x200000                              
                                                                                
Reading data from 0x2ff800 -- 100% complete.                                    
 2097152 bytes read: OK                                                         
## Booting image at 00800000 ...                                                
   Image Name:   OpenWrt Das U-Boot uImage                                      
   Created:      2016-01-02   1:38:50 UTC                                       
   Image Type:   ARM Linux Kernel Image (uncompressed)                          
   Data Size:    454856 Bytes = 444.2 kB                                        
   Load Address: 00600000
   Entry Point:  00600000                                                       
   Verifying Checksum ... OK

Any help would be most welcome.

ZyXEL NSA325 booting problem (2 replies)

$
0
0
I have a serial cable and trying to boot from USB because of impossible
to boot from NAND after flashed uboot.2016.05-tld-1.nsa325.bodhi.tar
USB was formatted as ext4 with boot flag and rootfs label, then just copied
a content from Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:48:40 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC: Kirkwood 88F6282_A1
DRAM: 512 MiB
WARNING: Caches not enabled
NAND: 128 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: egiga0
MV88E1318 PHY initialized on egiga0
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 122912768 000dc84e-01 83 Boot
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
3154896 bytes read in 311 ms (9.7 MiB/s)
7179935 bytes read in 501 ms (13.7 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.4.0-kirkwood-tld-1
Created: 2016-02-19 5:55:25 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3154832 Bytes = 3 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-4.4.0-kirkwood-tld-1
Created: 2016-02-19 7:33:04 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 7179871 Bytes = 6.8 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Using machid 0x118f from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x0000118f).

Available machine support:

ID (hex) NAME
ffffffff Generic DT based system
ffffffff Marvell Kirkwood (Flattened Device Tree)

Please check your kernel config and/or bootloader.

Understanding U-Boot Source (1 reply)

$
0
0
I have the U-Boot 1.1.4 source source code for the Cisco ON-100. The documentation says to run the following commands:

make mrproper
make db88f6282bp_config NBOOT=1 DDR=3 FREQ=400
make

I am assuming the db88f6282bp_config is a configuration file I should be able to find somewhere, but I can't seem to locate it! If this is not the case bodhi could you or someone else give me some pointers on how this crazy make system works?

This box has great features for the $12 I paid. 2 Gigabit Ethernet ports one with 802.3af POE, SD Card slot, 1 USB, power switch, 512 MB RAM, 512 MB NAND and a battery backed RTC. Now if I can just figure out why I don't get any serial access and how to get an updated U-Boot I'll be in business! Cisco sent me all source code which includes U-Boot and 2.6.31.8 kernel.

Zyxel NSA320s restore - mtd1 needed (1 reply)

$
0
0
Hello everyone,

I am looking for a way to recreate mtd1 (populate it with stock env values). I have a dump of original envs:

/tmp # ./fw_printenv
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
bootcmd=nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000
bootdelay=2
baudrate=115200
loads_echo=0
ipaddr=10.4.52.165
serverip=10.4.52.7
rootpath=/srv/ubuntu
netmask=255.255.255.0
nandEcc=1bit
kernel_addr=C80000
MODEL_ID=AF03
PRODUCT_NAME=STG-326
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=MitraStar Technology Corp.
run_diag=yes
ethaddr=4C:9E:FF:58:A4:10

and I have original boot (mtd0) - but I don't know how do I restore those envs back to mtd1 (I am afraid to type it by hand, to avoid bricking the device). Can you please help me and send me stock mtd1 from Zyxel NSA320s? Any help would be greatly appreciated!

Netgear Stora success (no replies)

$
0
0
Not sure whether anyone has reported success with a Netgear Stora yet, but I can confirm that all works great! I had a Netgear Stora that was hanging with a corrupted U-Boot 1.1.4. I was unable to boot to NAND or USB. So I created a Debian USB flash drive and then successfully used kwboot to boot the 2016.05 u-boot from this forum and loaded Debian from the flash drive. I was then able to follow the u-boot instructions and the Debian instructions to successfully load and boot Debian on this NAS!

root@Netgear-Stora:~# myinfo
Netgear-Stora
192.168.11.109
Machine model: NETGEAR MS2000 / MS2110 aka Stora
Linux version 4.6.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Wed May 18 03:54:14 PDT 2016

Kirkwood U-Boot and Debian Installer Script (WIP) (4 replies)

$
0
0
This is the working thread for the script to install latest U-Boot and Debian rootfs for Kirkwood boxes.

http://dumps101.us SELL DUMPS PIN/TRACK 1/2 /BALANCE HIGH/DUMPS ALL COUNTRY VERY GOOD Sell Dumps Pin/ Track 1&2 Shop/ Dumps Pin All Country/ Dumps Balance Good/ Dumps free/ Best Dumps >>>>Hello All Customers Come To My Shop

$
0
0
http://dumps101.us SELL DUMPS PIN/TRACK 1/2 /BALANCE HIGH/DUMPS ALL COUNTRY VERY GOOD

Sell Dumps Pin/ Track 1&2 Shop/ Dumps Pin All Country/ Dumps Balance Good/ Dumps free/ Best Dumps

>>>>Hello All Customers Come To My Shop<<<<

All Dumps Good with 98% To 100% validity is updated daily print shop Dumps101.us


$ Dumps Pin Track 101/201 Dumps - 98% to 100% validity!!
$ i'm work online 24/7
$ sell fullz dumps with pin High balance and Valid
$ Easy Replacement
$ Accept Payments via PerfectMoney, Bitcoins, webmoney, moneygram and Western Union

ICQ: 663194705
Yahoo => selldumps_us
Email => selldumps_us@yahoo.com
Gmail: cvvdumps79@gmail.com
Skype:sellerdumps

update more Dumps have All Country good and fresh
price low if order payment westernu union and money gram Min $300
have Good Base and vaild rate 95% bulk dumps with Pin and code 101,110,201,210,220 and more Country
Prices:
FOR USA DUMPS:
CLASSIC/STANDARD:$20
GOLD/PLAT:$30
SIGN/CORP/BIZ/WORLD/PURCH:$35
DISCO:$30


EU
classic/standart -40$
discover/amex -45$
gold/business/platinum -40$
corporate/signature/world -50$
Infinite -50$


Prices:
FOR CA DUMPS:
CLASSIC/STANDARD:$30
GOLD/PLAT:$50
SIGN/CORP/BIZ/WORLD/PURCH:35$
AMEX/DISCO:$35 >>>>:BULK BUYER CONTACT ON ICQ WE HVE GOOD OFFER FOR BULK BUYER AND RESELLER


We sell USA AND CANADA tr2, tr1+tr2, tr2+name DUMPS
ATTENTION GUYS !CANADA REPLACEMNT TIME IS BEFORE 12HOURS !USA REPLACEMNT TIME BEFORE 24HOURS!


Peculiarities of our service:
===========================
>High-percent valid.
>Weekly update.
>We're not resellers of somebody else's dumps – that's why all articles sold to you will stay only with you.
Payment and Guarantees:
==========================
>MoneyGram WU MINUMUM 250$+5% drop charges
>WMZ,BITCOINS no minumum
>Instant Delivery with WMZ,BTC
Substitution and replacements:
===============================
>We NEVER make REFUND, ONLY REPLACE!
>No replacements for Region Lock DUMPS.
>We only replace hold/stolen/decline dumps.
Our rules
======================
-We do not check the dumps
-We do not guarantee limits and amounts on Dumps
-No Test / No Free / No Sample Dumps
-REGION BLOCK NEVER WILL BE REPLACED, so choose your bin carefully
- Hello all customer

- I'm seller best and alway sell CC fresh with hight balance.
- And i have software do bug account bank and information western union.
- I have account paypal with good balance
- I hope u good customers and will be long-term cooperation

-My Shop Open Sever Checking Dumps BALNCE< and CHECKING DUMPS VAILD
- Selling Mail Pass 5$/1000 mail pass
- Selling Full info [ Name | DOB | Zipcode | State | City | Address | Phone | Mail | SSN | ] =
30$/1000 info
- Selling CCN US , Inter for Shipper and Offer or credit report
===Sell Cvv Good All Country====
- Selling CVV US all type
- Selling CVV CA [ random - bin - VBV - dob - full ]
- Selling CVV UK [ random - bin - VBV - dob - full ]
- Selling CVV AU [ random - bin - VBV - dob - full ]
- Selling CVV EU
**List CVV EU I Have**
- CVV ITALY [ random - bin - dob ]
- CVV GER [ random - bin - dob ]
- CVV Sweden [ random - bin - dob ]
- CVV Spain [ random - bin - dob ]
- CVV France [ random - bin - dob ]
- CVV Japan [ random - bin - dob ]
- CVV Denmark [ random - bin - dob ]
- Selling CVV Asia
- CVV Singapo
- CVV Malaysia
==== EGift Card ====
- Selling Amazon Gift Card all balancer
- Selling Itunes Gift Card
- Seliing Ebay , Mayc , BestBuy , Newget Egift Card
==== Paypal ====
-Selling Acc Paypal | Have Card | Have Bank | Mail Die = 3$/1acc
-Selling Acc Paypal | Have Card | No Have Bank | Mail Die = 1.5$/1acc
-Selling Acc Paypal | Have Card | Have Bank | Mail Live = 8$/1acc
-Selling Acc Paypal | Have Card | No Have Bank | Mail Live = 6$/1acc
-Selling Acc Paypal | Have Card | Have Bank | Balance = 25% total amount on acc
==== Dumps Track 1 & 2 ====
DUMPS WITH PIN


...::::UNITED_STATES:::...
-DEBIT CLASSIC :$20/1
-CREDIT CLASSIC :$20/1
-CREDIT PLATINUM:$25/1
-DEBIT BUSINESS:$25/1
-DEBIT STANDARD:$25/1
-CREDIT CONSUMER CARD:$25/1
-CREDIT PREMIER:$25/1
-NA STANDARD: $25/1
-CREDIT STANDARD:$25/1
-DEBIT PLATINUM:$25/1
-DEBIT PREMIER:$25/1
-CREDIT GOLD:$25/1
-DEBIT GOLD PREMIUM:$25/1
-CREDIT WORLD CARD:$25/1
-CREDIT SIGNATURE:$25/1
-CREDIT SMALL CORPORATE :$30/1
...:::CANADA:::...
-CREDIT STANDARD:$30/1
-DEBIT PREPAID:$25/1
-CREDIT PLATINUM:$30/1
-CREDIT GOLD:$30/1
-CREDIT INFINITE :$30/1
-CREDIT CLASSIC :$25/1
-NA STANDARD : $30/1
-CREDIT BUSINESS:$30/1
-CREDIT GOLD PREMIUM:$30/1
...:::AUSRIA:::...
-DEBIT ELECTRON:$35/1
-CREDIT CLASSIC:$30/1
-CREDIT CORPORATE PURCHASING :$35/1
.:KOREA,_REPUBLIC_OF:.
-CREDIT PLATINUM:$35/1
...:::EUROPEAN_UNION:::...
-CREDIT PLATINUM :$35/1
...::TongueUERTO_RICO:::...
-DEBIT CLASSIC:$35/1
...:::JAPAN:::..
-CREDIT CLASSIC :30/1
-CREDIT PREMIER:$35/1
...:::THAILAND:::...
-CREDIT PREMIER :$30/1
...:::TURKEY:::...
-CREDIT CLASSIC :$30/1
...:::JORDAN:::...
-CREDIT PREMIER :$35/1
...:::HUNGARY:::...
-CREDIT GOLD:$40/1
...:::TAIWAN,_PROVINCE_OF_CHINA:::...
-CREDIT PLATINUM :$40/1
-CREDIT INFINITE:$45/1
-CREDIT GOLD:$45/1
...:::FRANCE:::...
-DEBIT BUSINESS : $40/1
-CREDIT PREMIER :$40/1
...:::VENEZUELA,_BOLIVARIAN_REPUBLIC_OF:::...
-CREDIT GOLD : $45/1
...:::ITALY:::...
-DEBIT PREPAID :$30/1
...:::BRAZIl:::...
-DEBIT ELECTRON :30/1
...:::COLOMBIA:::...
-DEBIT CLASSIC :30/1
...:::INDIA:::...
-DEBIT PREMIER:$35/1
...:::ECUADOR:::...
-CREDIT CLASSIC:$40/1
...:::NETHERLANDS:::...
-CREDIT BUSINESS
...:::MEXICO:::...
-CREDIT PLATINUM
...:::BELGIUM:::...
CREDIT STANDARD
...:::SOUTH_AFRICA:::...
-CREDIT CORPORATE CARD:$40/1
...:::CYPRUS:::...
-CREDIT STANDARD:$40/1
...:::GERMANY:::...
-CREDIT CLASSIC:$40/1
...:::HONG_KONG:::...
-CREDIT PLATINUM :$35/1
###############################################
Proof DEMO LAST TIME SELLING DUMPS WITH PIN GOOD BALANCE
DUMPS WITH PIN
-JAPAN
B4541148282107007^Mamiko/Kobayashi^25072100000000000221000000 ;4541148282107007=2507210000000221000;PIN:5447
-TURKEY
B4155650149958727^FATIH/GUCER^17101103410400000211000000;4155650149958727=17101103410400211000;PIN:9889
-INDIA
B6593182112368584^laleh/babanazari^15012017313800000123000000;6593182112368584=15012017313800123000;PIN:?5778
-BRAZIL
B4901060071109496^dias/maria/luiza/nogueria^17071010550603000121000000;4901060071109496=17071010550603121000;PIN:60?30
-INDONESIA
B4158469878712212^ika/sri/purnamaningsih^17012201274000000213000000;4158469878712212=17012201274000213000;?PIN:7252
-HUNGARY
B5542040007316003^Artur/Beke^15091101088000000987000000;5542040007316003=15091101088000987000;PIN:1027
-TAIWAN,_PROVINCE_OF_CHINA
B4067701731557109^Wei-Chun/Chang^19011014045400000988000000;4067701731557109=19011014045400988000;PIN:2405
- CANADA
B4530920124710013^Bibliotheque^17032206128000000547000000;4530920124710013=17032?206128000547000;PIN: 3377
-VENEZUELA,_BOLIVARIAN_REPUBLIC_OF
B5412474300815295^Rafael/Cort^19081011050000000578000000;5412474300815295=19081011050000578000;PIN:1050
-AUSTRALIA
B4072209014479002^Priya/Selva-Nayagam^18082010000000000112000000;4072209014479002=18082010000000112000;PIN:508?1
-FRANCE
B4974903419054100^guihard/pascal^18021104400000000091000000;4974903419054100=18021104400000091000;PIN:0004?
-ECUADOR
B4568890000178269^Ernesto/Sierra^17081010901762200321000000;4568890000178269=17081010901762232100;PIN:2267?
-Pakistan
B6273770006050836^nusrat/jokhio^18122010000000112000000;6273770006050836=18122010000000112000;PIN:7100
-NETHERLANDS
B5528850001859800^Pieter/Guelen^17112100000000000953000000;5528850001859800=17112100000000953000;PIN:5371?
-SOUTH_AFRICA
B5221182034692226^Western/Cape^15011010000000000549000000;5221182034692226=15011010000000549000;PIN:7463
-HONG KONG
B4009750000123060^ WAI-LUN/YIP^18091100000000000141000000;4009750000123060=18091100000000141000;PIN:2221


ICQ: 663194705
Yahoo => selldumps_us
Email => selldumps_us@yahoo.com
Gmail: cvvdumps79@gmail.com
Skype:sellerdumps
*****http://dumps101.us*****

Troubleshooting uboot env (3 replies)

$
0
0
Hello all,

Based on the discussion Debian on NSA310S, I'm in the process of booting Debian from hard drive.
I have modified the instructions by Pengu to dual boot from sata and nand.
My Zyxel NSA310s boots with success from the file system on the hard drive, but fw_printenv shows the following error:

Warning: Bad CRC, using default environment


I understand that this is the result of a wrong address that is accessed when reading the env.
Until this is corrected I do not touch the nand storage.

When I boot without disk, fw_printenv shows the correct and expected output as available in the attached file.
Which indicates that the bootargs_nand variable is correct.

I think that the problem is with the bootargs_ide variable, but I need your expertise to find the problem.

Would you please help me?

Thank you very much,
Wilbert

[solved] Troubleshoot booting Zyxel NSA310s (netconsole) (no replies)

$
0
0
UPDATE 1:
The device boots with success from a 2TB mbr disk.

UPDATE 2:
After recreating the GPT table on the 3TB, it appears that my problems are solved.
(I had mucked with the old GPT, hoping that stock uboot would support hybrid MBR)

Hello All,

- Zyxel nsa310s
- SATA disk is 3TB gpt with rootfs

Yesterday I flashed with success uboot.2016.05-tld-1.nsa310s.mtd0.kwb and uboot.2016.05-tld-1.environment.img.
I have modified the fw_env following the instructions (except I forgot to add the dtb_file variable).
Netconsole is working.

Last night booting from hard disk resulted in a red LED and today I try to boot from USB (Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi).

* If I don't append the dtb file to the uImage, the result is a red LED (dtb_file set in /boot/uEnv.txt).
* if I do append the dtb file to the uImage, the result is a flashing green LED (dtb_file removed from /boot/uEnv.txt).

Either way, the nsa310s does not get a DHCP lease.
I notice that the rootfs filesystem on USB is modified (fcsk).

Following both netconsole output:and /boot/uEnv.txt

Please help me solve my boot problem,
Wilbert

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:55:45 -0700)
ZyXEL NSA310S/320S 1/2-Bay Power Media Server
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
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...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: WDC WD30EFRX-68EUZN0 Firm: 82.00A82 Ser#:  WD-WCC4N0PU0NUT
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
Unknown command 'mmc' - try 'help'

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            10485760        9ba9918d-01     83
loading envs from usb 0 ...
3033 bytes read in 278 ms (9.8 KiB/s)

Partition Map for IDE device 0  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000800      0x00a327ff      "Linux filesystem"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        guid:   43db0e8e-884d-4144-8050-0a67351187cb
  2     0x00a32800      0x00b327ff      "Linux swap"
        attrs:  0x0000000000000000
        type:   0657fd6d-a4ab-43c4-84e5-0933c84b4f4f
        guid:   87749c3f-1b3e-4b77-8c03-52128d16e08d
  3     0x00b32800      0x15d50a38e     "Linux filesystem"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        guid:   c2e9eef8-969c-4937-b28a-85e41f372e43
loading envs from ide 0 ...
3074 bytes read in 42 ms (71.3 KiB/s)
Unknown command 'mmc' - try 'help'
importing envs ...

/boot/uEnv.txt:

arcNumber=4931
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa310s.dtb
ethact=egiga0
ethaddr=4C:9E:FF:32:B2:D7
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
dtb_file=/boot/dts/kirkwood-nsa310s.dtb
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
mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
partition=nand0,2
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
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
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15

DLink DNS-325 u-boot image (1 reply)

$
0
0
Hi,

Stupidly bricked my DNS-325 :(
Could you please share mtd0 image with original u-boot from any Dlink DNS-325? (mine is RevA1)

E.g. by running this: nanddump -f /tmp/mtd0-dump.bin /dev/mtd0
Than grab off /tmp/mtd0-dump.bin file from the device.

Thank you in advance!

P.S.
Tried pulling out and compiling u-boot but it always hangs "Uncompressing Linux....... done"
Nothing happens afterwards.
Restored original environment but still no luck ((
Tried DNS-320 u-boot but it worked only via UART booting (kwboot). When it's flashed, device doesn't boot at all.

GlobalScale Dreamplug (no replies)

$
0
0
Anyone have a clue how to gain serial access to this without purchasing GlobalScale's expensive UART/JTAG module? The pin-out to the UART might be enough.

Ray

Broke my E02 updating "2016.05 U-Boot Kirkwood - PogoE02" (15 replies)

$
0
0
I had a Debian dist-upgrade today that broke my front light by naming them back to shivaplug. The upgrade upgraded me to 3.16 I believe. I did the
debian:~# echo "default-on" > /sys/class/leds/sheevaplug\:blue\:health/trigger

debian:~# echo "none" > /sys/class/leds/sheevaplug\:red\:misc/trigger

to fix but it was not persistent when I rebooted so I decided to grade uboot.

Here is my log preparing the new uboot:

feas@debian:~$ sudo cp uboot.2016.05-tld-1.pogo_e02.bodhi.tar /tmp
[sudo] password for feas: 
feas@debian:~$ cd /tmp
feas@debian:/tmp$ ls
uboot.2016.05-tld-1.pogo_e02.bodhi.tar
feas@debian:/tmp$ tar xvf uboot.2016.05-tld-1.pogo_e02.bodhi.tar
uboot.2016.05-tld-1.pogo_e02.mtd0.kwb
feas@debian:/tmp$ ls
uboot.2016.05-tld-1.pogo_e02.bodhi.tar  uboot.2016.05-tld-1.pogo_e02.mtd0.kwb
feas@debian:/tmp$ su
Password: 
root@debian:/tmp# ls
uboot.2016.05-tld-1.pogo_e02.bodhi.tar	uboot.2016.05-tld-1.pogo_e02.mtd0.kwb
root@debian:/tmp# flash_erase /dev/mtd0 0 4
Erasing 128 Kibyte @ 60000 -- 100 % complete 
root@debian:/tmp# nandwrite /dev/mtd0 uboot.2016.05-tld-1.pogo_e02.mtd0.kwb
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
root@debian:/tmp#  cat /etc/fw_env.config 
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundant
# environment sector is assumed present.
# Notice, that the "Number of sectors" is ignored on NOR.

# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0		0xc0000		0x20000		0x20000
root@debian:/tmp# wget http://www.dropbox.com/s/4smmw2wr4ugayz9/uboot.2016.05-tld-1.environment.bodhi.tar
--2016-07-27 00:04:40--  http://www.dropbox.com/s/4smmw2wr4ugayz9/uboot.2016.05-tld-1.environment.bodhi.tar
Resolving www.dropbox.com (www.dropbox.com)... 162.125.4.1
Connecting to www.dropbox.com (www.dropbox.com)|162.125.4.1|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.dropbox.com/s/4smmw2wr4ugayz9/uboot.2016.05-tld-1.environment.bodhi.tar [following]
--2016-07-27 00:04:40--  https://www.dropbox.com/s/4smmw2wr4ugayz9/uboot.2016.05-tld-1.environment.bodhi.tar
Connecting to www.dropbox.com (www.dropbox.com)|162.125.4.1|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://dl.dropboxusercontent.com/content_link/sMx557hgs9i4iWyXeOpwjjfenZ5IxCxPMfFrJuO5il7zd525B5xNg7w5jmQv05EX/file [following]
--2016-07-27 00:04:41--  https://dl.dropboxusercontent.com/content_link/sMx557hgs9i4iWyXeOpwjjfenZ5IxCxPMfFrJuO5il7zd525B5xNg7w5jmQv05EX/file
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 45.58.74.37
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|45.58.74.37|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 204800 (200K) [application/x-tar]
Saving to: ‘uboot.2016.05-tld-1.environment.bodhi.tar’

uboot.2016.05-tld-1.en 100%[===========================>] 200.00K  --.-KB/s   in 0.1s   

2016-07-27 00:04:41 (2.05 MB/s) - ‘uboot.2016.05-tld-1.environment.bodhi.tar’ saved [204800/204800]

root@debian:/tmp# ls
uboot.2016.05-tld-1.environment.bodhi.tar  uboot.2016.05-tld-1.pogo_e02.mtd0.kwb
uboot.2016.05-tld-1.pogo_e02.bodhi.tar
root@debian:/tmp# tar xvf uboot.2016.05-tld-1.environment.bodhi.tar
uboot.2016.05-tld-1.environment.img
uboot.2016.05-tld-1.environment.64K.img
uboot.2016.05-tld-1.environment
root@debian:/tmp# fw_printenv > current_envs.txt
root@debian:/tmp# /usr/sbin/flash_erase /dev/mtd0 0xc0000 1
Erasing 128 Kibyte @ c0000 -- 100 % complete 
root@debian:/tmp# /usr/sbin/nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.environment.img
Writing data to block 6 at offset 0xc0000
root@debian:/tmp# fw_setenv arcNumber 3542
root@debian:/tmp# fw_setenv machid dd6
root@debian:/tmp# cat current_envs.txt
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
serverip=192.168.86.110
ipaddr=192.168.86.109
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
arcNumber=3542
ethaddr=00:25:31:04:7B:64
root@debian:/tmp# fw_setenv mtdparts 'mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)'
root@debian:/tmp# fw_setenv ethaddr '00:25:31:04:7B:64'
root@debian:/tmp# fw_printenv
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
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
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
arcNumber=3542
machid=dd6
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
ethaddr=00:25:31:04:7B:64
root@debian:/tmp#  cat /boot/uEnv.txt 
cat: /boot/uEnv.txt: No such file or directory
root@debian:/tmp# fw_printenv > /boot/uEnv.txt
root@debian:/tmp# 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'
root@debian:/tmp# fw_setenv preboot 'run preboot_nc'
root@debian:/tmp# fw_setenv ipaddr    '192.168.86.109'
root@debian:/tmp# fw_setenv serverip '192.168.86.110'
root@debian:/tmp# reboot
Connection to 192.168.86.109 closed by remote host.
Connection to 192.168.86.109 closed.

The plug did not respond so I took it apart and connected the serial cable and this is the output for that:

feas@debian-laptop:~$ sudo picocom -b 115200 /dev/ttyUSB0
[sudo] password for feas: 
picocom v1.7

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Terminal ready


U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:23:43 -0700)
Pogo E02

SoC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
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... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	12582912  	b57a22f8-01	83 Boot
  2	12584960  	4194304   	b57a22f8-02	82
loading envs from usb 0 ...
2788 bytes read in 153 ms (17.6 KiB/s)
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
importing envs ...
himport_r: ethaddr=00:25:31:04:7B:64" into hash table
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 136 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
2082764 bytes read in 264 ms (7.5 MiB/s)
loading uInitrd ...
10550768 bytes read in 814 ms (12.4 MiB/s)
loading DTB /boot/dts/kirkwood-pogo_e02.dtb ...
** File not found /boot/dts/kirkwood-pogo_e02.dtb **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   kernel 3.16.0-4-kirkwood
   Created:      2016-07-26   8:56:48 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2082700 Bytes = 2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   ramdisk 3.16.0-4-kirkwood
   Created:      2016-07-26   8:56:58 UTC
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    10550704 Bytes = 10.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0xdd6 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    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 3.16.0-4-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 Debian 3.16.36-1 (2016-07-04)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Globalscale Technologies SheevaPlug
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    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: 243184K/262144K available (3907K kernel code, 360K rwdata, 1440K rodata, 277K init, 288K bss, 18960K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05410c4   (5349 kB)
[    0.000000]       .init : 0xc0542000 - 0xc058774c   ( 278 kB)
[    0.000000]       .data : 0xc0588000 - 0xc05e2168   ( 361 kB)
[    0.000000]        .bss : 0xc05e2168 - 0xc062a54c   ( 289 kB)
[    0.000000] NR_IRQS:114
[    0.000015] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    0.000319] Console: colour dummy device 80x30
[    0.000344] Calibrating delay loop... 1185.79 BogoMIPS (lpj=2371584)
[    0.024040] pid_max: default: 32768 minimum: 301
[    0.024171] Security Framework initialized
[    0.024222] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.024301] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.024319] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.025094] Initializing cgroup subsys memory
[    0.025136] Initializing cgroup subsys devices
[    0.025187] Initializing cgroup subsys freezer
[    0.025212] Initializing cgroup subsys net_cls
[    0.025256] Initializing cgroup subsys blkio
[    0.025292] Initializing cgroup subsys perf_event
[    0.025314] Initializing cgroup subsys net_prio
[    0.025400] CPU: Testing write buffer coherency: ok
[    0.025505] ftrace: allocating 16357 entries in 32 pages
[    0.049506] Setting up static identity map for 0x3b1e18 - 0x3b1e70
[    0.053008] devtmpfs: initialized
[    0.054793] pinctrl core: initialized pinctrl subsystem
[    0.055284] regulator-dummy: no parameters
[    0.058808] NET: Registered protocol family 16
[    0.059213] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.060247] cpuidle: using governor ladder
[    0.060272] cpuidle: using governor menu
[    0.060496] Feroceon L2: Enabling L2
[    0.060537] Feroceon L2: Cache support initialised.
[    0.060884] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.065171] No ATAGs?
[    0.069194] platform regulators:regulator@1: Driver reg-fixed-voltage requests probe deferral
[    0.070339] Switched to clocksource orion_clocksource
[    0.092514] NET: Registered protocol family 2
[    0.093494] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.093531] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.093561] TCP: Hash tables configured (established 2048 bind 2048)
[    0.093625] TCP: reno registered
[    0.093637] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.093658] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.093837] NET: Registered protocol family 1
[    0.094132] Unpacking initramfs...
[    1.030001] Freeing initrd memory: 10296K (c1101000 - c1b0f000)
[    1.031615] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.031689] audit: initializing netlink subsys (disabled)
[    1.031754] audit: type=2000 audit(1.024:1): initialized
[    1.032625] zbud: loaded
[    1.032882] VFS: Disk quotas dquot_6.5.2
[    1.032931] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.033028] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.033243] msgmni has been set to 495
[    1.035214] alg: No test for stdrng (krng)
[    1.035322] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.035513] io scheduler noop registered
[    1.035668] io scheduler cfq registered (default)
[    1.036879] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    1.038239] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.058458] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    1.078455] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    1.078633] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.098452] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    1.118453] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    1.118900] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.120174] console [ttyS0] disabled
[    1.120226] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[    1.628455] console [ttyS0] enabled
[    1.633796] nand: Could not find valid ONFI parameter page; aborting
[    1.640232] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.646623] nand: Hynix NAND 128MiB 3,3V 8-bit
[    1.651095] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[    1.656797] Scanning device for bad blocks
[    1.738146] 3 ofpart partitions found on MTD device orion_nand
[    1.744017] Creating 3 MTD partitions on "orion_nand":
[    1.749193] 0x000000000000-0x000000100000 : "u-boot"
[    1.755382] 0x000000100000-0x000000500000 : "uImage"
[    1.761479] 0x000000500000-0x000020000000 : "root"
[    1.766316] mtd: partition "root" extends beyond the end of device "orion_nand" -- size truncated to 0x7b00000
[    1.778160] mousedev: PS/2 mouse device common for all mice
[    2.786447] rtc-mv f1010300.rtc: internal RTC not ticking
[    2.792012] i2c /dev entries driver
[    2.796713] ledtrig-cpu: registered to indicate activity on CPUs
[    2.803113] TCP: cubic registered
[    2.806471] NET: Registered protocol family 17
[    2.811673] registered taskstats version 1
[    2.816879] USB Power: 5000 mV 
[    2.820423] rtc_hctosys: unable to open rtc device (rtc0)
[    2.827736] Freeing unused kernel memory: 276K (c0542000 - c0587000)
Loading, please wait...
[    2.902796] systemd-udevd[47]: starting version 215
[    2.916508] random: systemd-udevd urandom read with 1 bits of entropy available
[    3.037940] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    3.053217] usbcore: registered new interface driver usbfs
[    3.091750] libphy: orion_mdio_bus: probed
[    3.097458] platform mv643xx_eth_port.0: Driver mv643xx_eth_port requests probe deferral
[    3.108219] usbcore: registered new interface driver hub
[    3.138886] usbcore: registered new device driver usb
[    3.166083] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.208801] ehci-orion: EHCI orion driver
[    3.728240] orion-ehci f1050000.ehci: EHCI Host Controller
[    3.752600] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    4.280859] orion-ehci f1050000.ehci: irq 19, io mem 0xf1050000
[    4.295900] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:04:7b:64
[    4.306629] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    4.316047] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.322896] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.330163] usb usb1: Product: EHCI Host Controller
[    4.335072] usb usb1: Manufacturer: Linux 3.16.0-4-kirkwood ehci_hcd
[    4.341463] usb usb1: SerialNumber: f1050000.ehci
[    4.347503] hub 1-0:1.0: USB hub found
[    4.351327] hub 1-0:1.0: 1 port detected
[    4.666370] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    4.804108] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    4.810861] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    4.818048] usb 1-1: Product: USB2.0 Hub
[    4.826655] hub 1-1:1.0: USB hub found
[    4.830862] hub 1-1:1.0: 4 ports detected
[    5.106365] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    5.214485] usb 1-1.3: New USB device found, idVendor=0000, idProduct=7777
[    5.221415] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    5.228779] usb 1-1.3: Product: Mass Storage
[    5.233082] usb 1-1.3: Manufacturer: Generic
[    5.237381] usb 1-1.3: SerialNumber: 2B2A01FE
[    5.257980] SCSI subsystem initialized
[    5.266739] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    5.273382] scsi0 : usb-storage 1-1.3:1.0
[    5.279087] usbcore: registered new interface driver usb-storage
[    6.276706] scsi 0:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
[    6.299522] sd 0:0:0:0: [sda] 4096000000 512-byte logical blocks: (2.09 TB/1.90 TiB)
[    6.308130] sd 0:0:0:0: [sda] Write Protect is off
[    6.313878] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    6.342125]  sda: sda1 sda2
[    6.349384] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    6.359032] sd 0:0:0:0: Attached scsi generic sg0 type 0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: Assembling all MD arrays ... [   14.569472] __nand_correct_data: uncorrectable ECC error
[   14.574859] end_request: I/O error, dev mtdblock0, sector 1920
[   14.580968] __nand_correct_data: uncorrectable ECC error
[   14.586352] end_request: I/O error, dev mtdblock0, sector 2032
[   14.592463] __nand_correct_data: uncorrectable ECC error
[   14.597817] __nand_correct_data: uncorrectable ECC error
[   14.603171] end_request: I/O error, dev mtdblock0, sector 2046
mdadm: No arrays found in config file or automatically
Failure: failed to assemble all arrays.
done.
done.
Begin: Running /scripts/local-premount ... [   14.628230] PM: Starting manual resume from disk
done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
[   36.583457] random: nonblocking pool is initialized
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/disk/by-label/rootfs does not exist.  Dropping to a shell!
modprobe: module i8042 not found in modules.dep
[   44.818651] ehci-pci: EHCI PCI platform driver
[   44.844840] uhci_hcd: USB Universal Host Controller Interface driver
[   44.861893] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   44.882161] hidraw: raw HID events driver (C) Jiri Kosina
[   44.892652] usbcore: registered new interface driver usbhid
[   44.898286] usbhid: USB HID core driver


BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs)

I unpluged the usb and recycled the power and stopped the boot process and have this:


picocom v1.7

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Terminal ready


U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:23:43 -0700)
Pogo E02

SoC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
PogoE02> printenv
arcNumber=3542
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
ethact=egiga0
ethaddr=00:25:31:04:7B:64
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.86.109
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
nc_ready=0
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
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3073/131068 bytes
PogoE02>

Not really sure how to proceed from here. The new Debian dist-upgrade also broke my net boot time setup I had. I wonder if there was something else that caused this or if it was just me.

So, is there anyway to salvage this?

Stuck at "ALERT! /dev/disk/by-label/rootfs does not exist. Dropping to a shell!" (12 replies)

$
0
0
Hello!

I have been reading dozens of sites in this great forum for weeks now, for preparing the conversion of my GoFlex Net into something useful (newest UBoot + latest possible Debian) as good as possible. My plan was following the instructions here.
The result was a disaster, where seemingly everything went wrong as it could have had.

It started with Pogoplug not offering the checkbox for enabling SSH. I tried all options multiple times, like restting cookies, enabling UPnP, another webbrowser, but this damn checkbox wouldn't appear.
After this I wrote an email to pogoplug support, asking them for help. What I got was more an insult than any help.. they just sent me the standard form, telling me I should read the forum and whatever.. same for the next two emails I wrote them..

Ok, then. I remembered that I had an USB2serial converter, from some earlier projects and made it work with my GoFlex Net. I found some instructions on how to add an start entry for dropbear.sh into the rcS script - but there was no dropbear.sh in my device. So I tried to create my own dropbear.sh, added it into rcS and finally got SSH working.

Then I updated the bootloader, like said in Jeff's original instructions. (install_uboot_mtd0.sh).
After flashing I tried booting from the USB thumb drive I had prepared - but the GoFlexNet wouldn't boot or become accessible anymore.
So my next step was trying to recover the bootloader (U-Boot).
For making this short:
-serial console didn't work anymore and just showed garbled characters.
-kwtool didn't work at all, as it would always got "xmodem bad message".
But for luck I noticed, that when I started kwtool, reset the GoFlex and enabled serial console at the same time, I could actually get working access through console again.
As I still needed to repair the bootloader I tried achieving this by updating to the most recent bootloader, following bodhi's instructions here.
I set "fw_setenv dtb_file" because I stil had the old debain from Jeff's original post on my usb drive.

From then on I couldn't boot into debian anymore, because I always get the following error:


Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Waiting for root file system ... done.
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/disk/by-label/rootfs does not exist. Dropping to a shell!

Could you please help me?

Edit:
I removed the old Debian on my USB drive and replaced it by the most recent Debian 4.4 from bodhi. Then I added the uEnv.txt file with dtb_file='/boot/dts/kirkwood-goflexnet.dtb'.

This actually worked and it can boot into Debian again.
I'm not sure on how to continue from here, as I still got no rescue system and I don't know if the other OS I got on USB now than the original tutorial makes a difference there..

Edit2:
Ok, I just tried the "./install_rescue.sh" scripts. IT stops with saying that I had to update U-Boot to the latest version - but I think I already have the latest version.. Is this because Jeff's install rescue script is too old for knowing bhodi's current uboot?

how to backup/restore your NAND patitions and full device (5 replies)

$
0
0
Hello!

I could use an easy to follow guide, on how I could clone one GoFlexNet onto another GoFlexNet.
It should cover all possible data responsible for the characteristics of the device, so that's all NAND, including Bootloader, System and Env.
And I wonder where the device's Pogoplug ID is stored. Is it within one of the mtd partitions? Is it in env?
Would cloning one device onto another actually work?
Thank you! :)

Convert Pogoplug Series 4 to Debian, howto? (1 reply)

$
0
0
Hi!

Currently running a couple of pogo plugs (one standard with SATA, one mobile) on Archlinux (https://archlinuxarm.org/platforms/armv5/pogoplug-series-4).

Now wanting to re-purpose these, and Debian fits me better!

How do I reflash them to the Bodhi u-Boot, and install Debian on the disks (sata on the v4, and usb-key on the v4 mobile) that are now running Arch?

Found these by searching:
http://forum.doozan.com/read.php?2,25422,25422#msg-25422
http://forum.doozan.com/read.php?3,12381

But they do not see to fit my scenario, or?

Thanks for any help/guidance!

[root@eyez ~]# cat /etc/fw_env.config
cat: /etc/fw_env.config: No such file or directory
[root@eyez ~]# 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"
mtd5: 00010000 00008000 "spi0.0"
[root@eyez ~]# fw_printenv ethaddr
-bash: fw_printenv: command not found
[root@eyez ~]# dmesg | grep -i 'bad'
[   14.935952] Scanning device for bad blocks
[   14.969468] Bad eraseblock 549 at 0x0000044a0000
[root@eyez ~]# fdisk -l
Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1f29dfaf

Device     Boot Start       End   Sectors  Size Id Type
/dev/sda1          63 312576704 312576642  149G 83 Linux
[root@eyez ~]#

NC appears successful, but no ip / ssh (goflex) (2 replies)

$
0
0
I've had "U-Boot 2016.05-1 (Jun 20 2016 - 01:58:53 -0600) Arch Linux ARM" running on my GoFlex Home for a while, but I would like to leave that working on the sata as it does now, but run Debian from a usb. It must have an ip because nc sees it, but i can't ping or ssh to it or see it on my router's list (asus merlin)

I have a usb-serial but the actual device is damaged at the moment so I am trying to debug with NC (thank goodness that is still working)

Even though the sata/arch was working, I flashed the envs from http://forum.doozan.com/read.php?3,12381 to see if that would help, and i followed this to make the rootfs usb http://forum.doozan.com/read.php?2,12096

Here is what i get from NC:

travis@odroid64:/root$ nc -lup 6666 192.168.1.2 6666

U-Boot 2016.05-1 (Jun 20 2016 - 01:58:53 -0600) Arch Linux ARM
Seagate GoFlex Home                                                                         0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            15190016        2164f510-01     83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 231 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3165501 bytes read in 388 ms (7.8 MiB/s)
loading uInitrd ...
7179935 bytes read in 513 ms (13.3 MiB/s)
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
10605 bytes read in 954 ms (10.7 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Created:      2016-08-19  16:01:31 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3165437 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.4.0-kirkwood-tld-1
   Created:      2016-02-19   7:33:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7179871 Bytes = 6.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000

I cannot get interrupt to work, but if I start it up with nothing attached it will get me to the prompt and I am able to interact with that, here is my current envs (random numbers are me trying to inturupt):

travis@odroid64:/root$ nc -l -u -p 6666

U-Boot 2016.05-1 (Jun 20 2016 - 01:58:53 -0600) Arch Linux ARM
Seagate GoFlex Home                                                                         2  1 dfdfvfd 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
Unknown command 'mmc' - try 'help'

no USB devices available

no IDE devices available
Unknown command 'mmc' - try 'help'
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 size - ide 0 **
device ide 1:1
** Bad device size - ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
GoFlexHome>printenv
ddddfdfvfdsdprintenv
Unknown command 'ddddfdfvfdsdprintenv' - try 'help'
GoFlexHome> printenv
printenv
arcNumber=3338
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),-(rootfs)
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=00:50:43:fc:09:1c
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.1.2
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
nc_ready=1
ncip=192.168.1.3
partition=nand0,2
preboot=run preboot_nc
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
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
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.1.3
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3259/131068 bytes
GoFlexHome>

if it's pertinent, I set up the usb by ssh'ing (root) into a ARMBIAN Ubuntu 16.04.1 LTS 3.14.74-odroidc2 and i am running the nc host session from the same.

thanks for any assistance.

Netgear Stora uboot envs and FDT (3 replies)

$
0
0
I loaded uboot.2016.05-tld-1.netgear_ms2110.bodhi.tar It works well.

I wanted to see if I could use FDT. I can't think of any reason why it would not work.

My question is about using the uboot.2016.05-tld-1.environment.bodhi.tar

The default mtdparts for a netgear stora are
mtdparts=mtdparts=orion_nand:1M(u-boot),512K(uboot_env),512K(key_store),512K(info),10M(etc),10M(kernel_1),48896K(rootfs1),10M(kernel_2),-(rootfs2)

Since I am not using a large chuck of that, Does it make sense to shift it to
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)

Also.. are there instructions to use the nand for uImage and rootfs ? I currently use them on usb or sata, but would like to use the nand if possible.

Thanks!

uBoot for netgear Stora FDT (2 replies)

$
0
0
Bodhi,

I went ahead and tried FDT on my netgear stora.

I updated uboot to uboot.2016.05-tld-1.netgear_ms2110.bodhi.tar

I also rewrote the envs following your instructions

With a USB stick formated to ext3 per your instructions with Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 .

I got the following message. I can give you the full output if you'd like. Any ideas?

[ 3.418129] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 3.425798] Please append a correct "root=" boot option; here are the available partitions:
[ 3.434263] 1f00 262144 mtdblock0 (driver?)
[ 3.439349] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 3.447651] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.0-kirkwood-tld-1 #1
[ 3.454639] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[ 3.460971] [<c0016784>] (unwind_backtrace) from [<c00129f8>] (show_stack+0x10/0x14)
[ 3.468761] [<c00129f8>] (show_stack) from [<c00c2200>] (panic+0x80/0x214)
[ 3.475676] [<c00c2200>] (panic) from [<c07d9280>] (mount_block_root+0x204/0x24c)
[ 3.483198] [<c07d9280>] (mount_block_root) from [<c07d93b4>] (mount_root+0xec/0x118)
[ 3.491072] [<c07d93b4>] (mount_root) from [<c07d9504>] (prepare_namespace+0x124/0x184)
[ 3.499120] [<c07d9504>] (prepare_namespace) from [<c07d8e9c>] (kernel_init_freeable+0x208/0x258)
[ 3.508047] [<c07d8e9c>] (kernel_init_freeable) from [<c05b16b4>] (kernel_init+0x8/0xe4)
[ 3.516188] [<c05b16b4>] (kernel_init) from [<c000f090>] (ret_from_fork+0x14/0x24)
[ 3.523799] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Help with Pogoplug E02 Restore / Repair - Have Serial Access (1 reply)

$
0
0
I picked up a Pogoplug a while back and had messed with it a little before putting it on the shelf.

Plugged it back in recently to try and use it for a little home server and proceeded to bork it up something fierce while trying to install Arch. It's very possible I tried to install Debian on this thing previously so maybe that's the root of the problems?

Regardless- I'd like a method to restore the E02 back to the original factory firmware so I can start the process all over again. I don't have any backups of the original image.

Here's what I get on the serial console:

U-Boot 2014.07-tld-2 (Sep 20 2014 - 00:52:18)
Pogo E02

SoC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
No link on egiga0
ping failed; host 192.168.1.1 is not alive
Hit any key to stop autoboot:  0
Unknown command 'usb' - try 'help'
Unknown command 'mmc' - try 'help'
Unknown command 'ide' - try 'help'
USB is stopped. Please issue 'usb start' first.
Unknown command 'mmc' - try 'help'
Unknown command 'ide' - try 'help'
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
** Bad device usb 0 **
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Unknown command 'mmc' - try 'help'
Unknown command 'bootargs' - try 'help'
** Bad device mmc 0 **
** Bad device mmc 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Unknown command 'ide' - try 'help'
** Bad device ide 0 **
** Bad device ide 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
resetting ...

Any help would be appreciated!
Viewing all 901 articles
Browse latest View live