[HOW-TO ARMv5-Kirkwood] NAND rescue system

Guides written by the community, for the community, and only guides!

Re: [HOW-TO ARMv5-Kirkwood] NAND rescue system

Postby williamtarrantjr » Thu Jun 04, 2015 7:44 pm

Hi everyone, I tried using the procedure outlined above and everything seemed fine, until I got to the part to set the U-Boot environment.

I got the following:$this->bbcode_second_pass_code('', '[root@chango-pogo ~]# fw_setenv mountubi 'ubi part rootfs; ubifsmount ubi0:rootfs'
Cannot parse config file: Invalid argument
Error: environment not initialized
')

Any thoughts? Not sure what I did wrong, because I thought I made sure I had all the prereq's before starting.

Any assistance is much appreciated. Thanks.
williamtarrantjr
 
Posts: 7
Joined: Mon Dec 30, 2013 4:24 am

Re: [HOW-TO ARMv5-Kirkwood] NAND rescue system

Postby WarheadsSE » Thu Jun 04, 2015 8:35 pm

Did you look at the config file for it?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [HOW-TO ARMv5-Kirkwood] NAND rescue system

Postby williamtarrantjr » Fri Jun 05, 2015 5:13 am

Alright, first off, I'm a little bit of a noob with arch, but I like it, and I learn quick. So sorry if I ask common knowledge questions.

So, are you meaning the file /etc/fw_env.config

If so, yes I looked in it, but not sure what I should be seeing. Theres actually not anything that is uncommented.
$this->bbcode_second_pass_code('', ' #Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.
# MTD device name Device offset Env. size Flash sector size
#/dev/mtd2 0x0000 0x20000 0x20000

# segate dockstar:
# /dev/mtd0 0xc0000 0x20000 0x20000

# iomega iconnect
# /dev/mtd0 0xa0000 0x20000 0x20000

# CuBox
# /dev/mtd0 0xc0000 0x10000 0x10000

# CuBox-i/Hummingboard
# /dev/mmcblk0 0x60000 0x2000 0x2000

# Utilite 1
# /dev/mtd1 0x0000 0x2000 0x2000
')
williamtarrantjr
 
Posts: 7
Joined: Mon Dec 30, 2013 4:24 am

Re: [HOW-TO ARMv5-Kirkwood] NAND rescue system

Postby moonman » Fri Jun 05, 2015 5:17 am

You need to uncomment the one for dockstar given that all mentioned requirements are met. Double check after uncommenting a line with fw_printenv. If it works, you are good to go. What device do you have?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: [HOW-TO ARMv5-Kirkwood] NAND rescue system

Postby cdluck » Thu Aug 27, 2015 4:22 pm

$this->bbcode_second_pass_quote('', '1'). You appear to have stock mtd partitioning scheme. You won't have enough space to do it with mtd2 still there. E02 has ~128MB flash. With 1MB for uboot and the rest for rescue system I have 2MB free on mtd1.


How do we repartition mtd so it's just mtd0 and mtd1? I installed uboot with the script in the installation instructions for a Pogoplug v4, but I still have more than two mtd partitions. I tried searching through the forums last night and googling, but couldn't figure out what to do without potentially bricking my system.
cdluck
 
Posts: 1
Joined: Thu Aug 27, 2015 3:24 pm

Re: [HOW-TO ARMv5-Kirkwood] NAND rescue system

Postby moonman » Mon Aug 31, 2015 4:27 am

You need to install latest U-Boot: viewtopic.php?f=53&t=8857
The one in installation instructions is a recompiled version of Official PPv4 uboot with usb enabled.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: [HOW-TO ARMv5-Kirkwood] NAND rescue system

Postby psychokiller » Tue Sep 15, 2015 5:46 pm

Hi all,

I sucessfully installed the rescue system and tried to customize it, so I remounted the rootfs rw and tried to use pacman, but all I got was this error:

$this->bbcode_second_pass_code('', 'error: failed to initialize alpm library
(could not find or read directory: /var/lib/pacman/)')

Is this the proper way to try to add a few packages to the rescue system?

Is it at all possible?

Any better (working) way?

TIA

Paolo
psychokiller
 
Posts: 40
Joined: Tue Sep 15, 2015 5:39 pm

Re: [HOW-TO ARMv5-Kirkwood] NAND rescue system

Postby moonman » Tue Sep 15, 2015 5:50 pm

Sorry, it is not possible since i removed all records of installed packages to save space. On 128 MB devices there is barely 2MB left
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: [HOW-TO ARMv5-Kirkwood] NAND rescue system

Postby psychokiller » Tue Sep 15, 2015 6:22 pm

I manager to have pacman running by editing /etc/pacman.conf and editing DBPath, CacheDir and LogFile to point to /tmp, this way:

$this->bbcode_second_pass_code('', '#DBPath = /var/lib/pacman/
DBPath = /tmp
#CacheDir = /var/cache/pacman/pkg/
CacheDir = /tmp
#LogFile = /var/log/pacman.log
LogFile = /tmp/pacman.log
')

I updated the pacman db with pacman -Syy

Then I started pacman with -S and --force to install a couple of small packages (picocom and ser2net).

--force was needed to overwrite files already present and not woned by other packages (since the pacman db is missing).

Remounted rootfs ro and rebooted. up to now everything seems to work fine.

Just to let the community know

Paolo
psychokiller
 
Posts: 40
Joined: Tue Sep 15, 2015 5:39 pm

Re: [HOW-TO ARMv5-Kirkwood] NAND rescue system

Postby moonman » Tue Sep 15, 2015 8:24 pm

I would be careful doing this.
1. The packages that come with rescue system are slightly outdated now
2. pacman does not know what has been installed

There is a good chance you will brake something.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

PreviousNext

Return to Community Guides

Who is online

Users browsing this forum: No registered users and 4 guests