General NAS-Central Forums

Welcome to the NAS community
It is currently Fri Sep 22, 2017 4:38 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Jan 30, 2015 2:45 pm 
Offline

Joined: Wed Sep 24, 2014 10:27 am
Posts: 20
Hello, I successfully installed the wheezy 3.12 following the guides in these forums. What now I am interested to do is understanding the boot part creation (first 32mb) How that part works and Where i can start compiling them for example to be able to boot a newer kernel.
The most lately updated git repository on the subject are:

https://github.com/kref/u-boot-oxnas

https://github.com/kref/linux-oxnas

But i don't know where to start. Basically i want to compile a new u-boot and install a 3.16 kernel.
Any help on where i can start is appreciated.

Thanks


Top
 Profile  
 
PostPosted: Fri Jan 30, 2015 4:20 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6039
I'm not experienced in this, here are my 2 cents:

According to the Wiki the Stage-1 bootloader expects u-boot starting at sector 154. The rest is up to you. If you let u-boot load uImage as file from a partition (the way I would do it) that is all. If you don't, you will have to define yourself where you put uImage (and maybe uInitrd).


Top
 Profile  
 
PostPosted: Sun Feb 01, 2015 4:32 pm 
Offline

Joined: Wed Sep 24, 2014 10:27 am
Posts: 20
I understand, the thing that is not clear to me is:
If i leave untouched the first 32MB with your files, would i able to boot other rootfs ported for OXNAS.

I think i will play with this, and come back with the results :)


Top
 Profile  
 
PostPosted: Wed Feb 04, 2015 8:37 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6039
Quote:
If i leave untouched the first 32MB with your files, would i able to boot other rootfs ported for OXNAS.
No. Yes. Using this '32MB', the box will run the kernel and initrd which are inside it. That initrd contains some complicated scripts to assemble and mount the volumes.

To run your own rootfs (which hasn't to be ported, BTW, Debian for armel will run fine), you'll have to either exchange the initrd, or change the u-boot environment (I think you'll need serial for that) to leave the initrd, and push a 'normal' rootfs instead using the command line, or exchange the kernel by one which ignores the commandline, and uses it's own.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group