SATA upgrade to latest oxnas - resoved

This forum is for all other ARMv5 devices

SATA upgrade to latest oxnas - resoved

Postby dobdel11 » Thu Jan 31, 2013 7:58 pm

Hi,

I have pogo P24 with SATA boot and 1 year old system. I would like to upgrade to latest system, because pacman is claming update when try to install packages.

First I tried pacman-Syu but can't resolve libc dependencies. (as many of others :? )

Second I tried http://archlinuxarm.org/forum/viewtopic.php?f=29&t=2453 but it was not for SATA booting. And nandwrite failed. teherefore I had kernel panic.
$this->bbcode_second_pass_code('', '
12.290000] eth0: link up, 100Mbps, full-duplex, using pause, lpa 0x4DE1
[ 12.290000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 12.320000] Unable to handle kernel NULL pointer dereference at virtual address 00000019
[ 12.320000] pgd = c0004000
[ 12.330000] [00000019] *pgd=00000000
[ 12.330000] Internal error: Oops: 17 [#1] SMP
[ 12.330000] Modules linked in: bootled_module gmac mii
[ 12.330000] CPU: 0 Not tainted (2.6.31.6_SMP_820 #100)
[ 12.330000] PC is at copro_hard_start_xmit+0x14/0x3e4 [gmac]
[ 12.330000] LR is at dev_hard_start_xmit+0x244/0x2f0
[ 12.330000] pc : [<bf0043cc>] lr : [<c0248e88>] psr: 60000113
[ 12.330000] sp : c03ddcc8 ip : c5807800 fp : c5807800
[ 12.330000] r10: 00000000 r9 : bf009854 r8 : c5f43540
[ 12.330000] r7 : c041c8e0 r6 : c041c844 r5 : c5807800 r4 : c5f43540
[ 12.330000] r3 : 00000001 r2 : 00000000 r1 : c5807800 r0 : c5f43540
[ 12.330000] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 12.330000] Control: 00c5787d Table: 65f1c00a DAC: 00000017
[ 12.330000] Process swapper (pid: 0, stack limit = 0xc03dc270)
.
')
and
$this->bbcode_second_pass_code('', '
.
Kernel panic - not syncing: Fatal exception in interrupt
')

Tried to recover with serial console, but failed. (2 days google-ing. :D )
At the end restored an old backup. now it works with a 1 year old system.

How can I upgrade in case I have SATA ?
Can someone make update-oxnas.tar.gz for SATA?

I would appreciate any help.

UPDATE: Try to copy Warhead update file content as SLYCAT advised http://archlinuxarm.org/forum/viewtopic.php?f=29&t=2453&p=17919&hilit=sata#p17925, but kernel panic again.

Regards,
Robert
Last edited by dobdel11 on Sat Feb 02, 2013 1:58 pm, edited 3 times in total.
dobdel11
 
Posts: 10
Joined: Thu Jan 31, 2013 7:40 pm

Re: SATA upgrade to latest oxnas

Postby belga » Thu Jan 31, 2013 8:24 pm

Hi,

Made a new installation : viewtopic.php?f=29&t=2146
But you must replace the file uImage.nopci or .pci in the folder uImage of the tarball oxnas_sata_boot.tgz with those found in
http://archlinuxarm.org/os/oxnas/update-oxnas.tar.gz

Make the same thing for the folder lib/modules of ArchLinuxARM-oxnas-latest.tar.gz
belga
 
Posts: 37
Joined: Tue Jan 10, 2012 12:18 pm

Re: SATA upgrade to latest oxnas

Postby dobdel11 » Thu Jan 31, 2013 11:44 pm

Dear Belga.

Thank you very much, sharing your experience.
painfully steps, but hope works...

one question before go: must delete all files under lib/modules before copy files from update..tar.gz?

regards,
Robert
dobdel11
 
Posts: 10
Joined: Thu Jan 31, 2013 7:40 pm

Re: SATA upgrade to latest oxnas

Postby belga » Fri Feb 01, 2013 12:28 am

Hi,

no you must rename or delete only the folder 2.6.31.6_SMP_820 in lib/modules/
and copy the contents of folder /lib:
$this->bbcode_second_pass_code('', 'cp -aRP path_update_oxnas/lib/* path_Alarm/lib/')

is it clear ?


remark: as pogo starts on sata disk, you can only run the script in the package update_oxnas.
belga
 
Posts: 37
Joined: Tue Jan 10, 2012 12:18 pm

Re: SATA upgrade to latest oxnas

Postby dobdel11 » Fri Feb 01, 2013 7:18 am

hi,
many thank to clarify.

started backup files before clean install. finger crossed. :cry:
(I intend to make a separate partition for my data. )

regards Robert
dobdel11
 
Posts: 10
Joined: Thu Jan 31, 2013 7:40 pm

Re: SATA upgrade to latest oxnas

Postby dobdel11 » Fri Feb 01, 2013 1:02 pm

Hi,

clean istall works! Thank you for your advice!

The way i did:
1.0 Pogo HDD attached to my pc (sdb)
1.1 Delete all directory on my root fs (sdb2) (except my personal directories /data and /movies and /download)
2. Extarcted ArchLinuxARM-oxnas-latest.tar.gz
3. deleted /lib/modules/2.6.31.6_SMP_820 directory on sdb2
4. extracted update-oxnas.tar.gz
5. copy lib/* (in update-oxnas ) to /lib on sdb2
6. extracted oxnas_sata_boot.tgz,
7. modified the disk_create script (in my case sdb)
8. update kernel with the one is in update-oxnas (uImages/uImage.nopci) and
9. change the softlink: @uImages linking to uImages/uImage.nopci
10. changed mac addres /usr/local/mac_addr on sdb2
11. double checked disk_create script and TAKE A BREATH and run it. :lol:
12. copy /root/.ssh directory (authorized_keys) my early backup to /root to passwordless SSH.
13. sync, umount, detach from pc
14. attach to Pogo SATA
15. and reboot. serial connected to monitor. but few error minor messages only.
Works.
Now backing up and then
will start update_oxnas script.

Thanks again your help.
R
:lol:

N
dobdel11
 
Posts: 10
Joined: Thu Jan 31, 2013 7:40 pm

Re: SATA upgrade to latest oxnas

Postby dobdel11 » Fri Feb 01, 2013 1:20 pm

Hello,

I had an error message while runing ./update-kernel.sh

depmod: WARNING: could not open /lib/modules/2.6.31.6_SMP_820/modules.builtin: No such file or directory

Is that a problem or can be eliminate?

R
dobdel11
 
Posts: 10
Joined: Thu Jan 31, 2013 7:40 pm

Re: SATA upgrade to latest oxnas

Postby pazos » Fri Feb 01, 2013 2:57 pm

as root:

touch /lib/modules/2.6.31.6_SMP_820/modules.builtin && depmod -a
pazos
 
Posts: 21
Joined: Thu Aug 04, 2011 2:35 pm

Re: SATA upgrade to latest oxnas

Postby dobdel11 » Fri Feb 01, 2013 3:31 pm

Thank you Pazos.
Thats it!

Regards,
R
dobdel11
 
Posts: 10
Joined: Thu Jan 31, 2013 7:40 pm

Re: SATA upgrade to latest oxnas

Postby WarheadsSE » Fri Feb 01, 2013 5:39 pm

that's technically even an ignorable error.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Next

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 8 guests