A new kernel for oxnas

This forum is for all other ARMv5 devices

Re: A new kernel for oxnas

Postby schnee » Sat Mar 01, 2014 9:33 am

$this->bbcode_second_pass_quote('', '5')) install stage1 (u-boot-spl.bin) to sata disk
i prepared the sata script, just edit the install destination) and run it
https://mega.co.nz/#!ZVtXTSSB!Je8rUX_Pm ... n_OwaRjbFo


This links to the u-boot.img file and not to the sata script.

Thanks
schnee
 
Posts: 10
Joined: Tue Jul 24, 2012 9:01 pm

Re: A new kernel for oxnas

Postby coachskolari » Sat Mar 01, 2014 2:21 pm

uploaded all needed files again
you only have to get the rootfs...there are also some little readmes included

https://mega.co.nz/#!QQdnkA4A!ovI26ARaD ... OSnlb-lU7U

i can only manage to get it working using the oxnas latest rootfs / the armvte5 latest isnt booting...
but i try to update using the arch rollback machine now
coachskolari
 
Posts: 6
Joined: Sun Jan 12, 2014 12:49 pm

Re: A new kernel for oxnas

Postby niedi74 » Sat Mar 01, 2014 9:00 pm

hi

would this work from usb stick as well or only from sata HDD ?

thx
karsten
niedi74
 
Posts: 14
Joined: Mon Dec 23, 2013 7:32 am

Re: A new kernel for oxnas

Postby WarheadsSE » Sun Mar 02, 2014 1:04 pm

The u-boot has to be changed out.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: A new kernel for oxnas

Postby celemine1gig » Mon Mar 03, 2014 3:36 pm

A U-Boot version (new, by kref) for NAND can be found here:
http://www.hs-augsburg.de/~ingmar_k/Pog ... /03032014/

With instructions for flashing, here:
viewtopic.php?f=55&t=6193&start=70#p36159

Just tested it on my B04 Classic. Seems to work just fine.
First thing after flashing is to correct the "ethaddr" environment variable in U-Boot and to check the other environment settings. So please only use it, if you know what you are doing! I am not responsible for any damages or misbehaviour of your hardware :!:
DON'T TRY IT WITHOUT SERIAL CONSOLE :!:
celemine1gig
 
Posts: 54
Joined: Fri Apr 26, 2013 7:55 pm

Re: A new kernel for oxnas

Postby Geoff » Mon Mar 03, 2014 5:11 pm

That sounds like good progress. Can you configure its env parameters to look for a kernel and dtb (preferably in /boot of first ext4 partition) first on SATA, then on USB, and then on NAND?
Geoff
 
Posts: 231
Joined: Wed Mar 09, 2011 5:14 pm

Re: A new kernel for oxnas

Postby celemine1gig » Mon Mar 03, 2014 5:15 pm

It is configured to first try to boot from USB, then NAND (ubifs), then via tftp.
All the necessary settings to make it work are there already. You might need to edit some to fit your needs, though.

Edit:
My changed sources can be found here:
https://github.com/ingmar-k/u-boot-oxnas
Perhaps it can be merged with kref's work, later on. ;) At the moment it is just a preliminary version that works. The environment however has still lots of possibilities for improvements.
celemine1gig
 
Posts: 54
Joined: Fri Apr 26, 2013 7:55 pm

Re: A new kernel for oxnas

Postby schnee » Wed Mar 05, 2014 7:02 pm

So i still cannot boot it with the new image from sata. The device works fine with the old kernel both from USB and SATA.

Here is what i got on the netconsole:
$this->bbcode_second_pass_code('', '
xx@yyy:~$ nc -l -k -u -p 6666 &
[3] 16123
xx@yyy:~$ nc -u 192.168.0.100 6666
2 ^C

[3]+ Stopped nc -l -k -u -p 6666
xx@yyy:~$ ping 192.168.0.100
PING 192.168.0.100 (192.168.0.100) 56(84) bytes of data.
64 bytes from 192.168.0.100: icmp_seq=1 ttl=64 time=0.161 ms
64 bytes from 192.168.0.100: icmp_seq=2 ttl=64 time=0.140 ms
')
i can ping the device, i see it's mac address on the router etc

my SATA partition table is the following:
$this->bbcode_second_pass_code('', 'Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00008000

Device Boot Start End Blocks Id System
/dev/sdd1 2048 34815 16384 6 FAT16
/dev/sdd2 34816 62531583 31248384 83 Linux
')

i have the u-boot image from coachskolari on the FAT partition. What i am doing wrong that I do not get into the netconsole? Any ideas?

EDIT: found that the problem was that I used the netconsole from ubuntu, instead of ncb.c & netconsole scritp from k-ref's uboot repository. Now I have to generate/get the dtbs & kernel file for the V3 as my board is not the PRO
schnee
 
Posts: 10
Joined: Tue Jul 24, 2012 9:01 pm

Re: A new kernel for oxnas

Postby coachskolari » Wed Mar 12, 2014 7:58 pm

I have here a SATA-rootfs for the pogoplug PRO for people who wanna give it a try :)

It includes:

- kernel 3.12.6
- the latest armv5te rootfs using systemd and all updates until March 11, 2014
- macchanger systemd-service
- LED systemd-service (Orange)
- enabled 512M swapfile

I added htop, the LED binaries and the 2 custom services. root password is 'xxx'. Please change it after installation.

Default in this rootfs the macchanger.service is enabled (please edit the main service file at '/etc/systemd/systemmacchanger@.service' according to the mac you want to use).

The macchanger service is for people who want to use the mac_adress CloudEngines' set when they sold the devices.
If you disable/remove the service then the real mac adress of the azurewave ethernet adapter will be used instead.

Instructions:

1) Prepare a sata disk with 2 partitons:
1st: 16MB FAT16
2nd: a ext4-partition for the rootfs, label 'root'
2) copy u-boot.env and u-boot.img to 1st partiton
3) use rsync (rsync -av) to copy the rootfs to the 2nd partition
4) run the modified './disk_create' script (think of setting up the correct device sdX)

Hope this is useful for some PogoPro users. Wifi shows up, but I did not test it since I don't use it.

Download:

u-boot-files:
https://mega.co.nz/#!wd1DmbrB!os6F9c-lL ... jajLGwQZyY
rootfs:
https://mega.co.nz/#!9M9F3IAI!zW_f9U-Zi ... A2E0FrM39E


Known issues:
LED is not switching off after shutdown, I added a shutdown.service for the LED but it is not working and I didn't check for the reason yet.
coachskolari
 
Posts: 6
Joined: Sun Jan 12, 2014 12:49 pm

Re: A new kernel for oxnas

Postby celemine1gig » Thu Mar 13, 2014 11:31 am

I just deleted my github fork of kref's uboot and the compiled files.
The reason is that there were still problems with the NAND environment. I will completely redo and test it in the next few days and then reup it to github.
celemine1gig
 
Posts: 54
Joined: Fri Apr 26, 2013 7:55 pm

PreviousNext

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 4 guests