A new kernel for oxnas

This forum is for all other ARMv5 devices

Re: A new kernel for oxnas

Postby jbrnd » Wed Sep 10, 2014 8:21 pm

Something seems to have changed (new systemd that needs new kernel features?) and I can't get my oxnas to boot anymore, either with the kernel I compiled myself or the 3.12.6 image posted earlier in this thread. Attaching a serial cable shows this at the end of the boot sequence:

$this->bbcode_second_pass_code('', '
[ OK ] Stopped OpenSSH Daemon.
Starting OpenSSH Daemon...
[ OK ] Started OpenSSH Daemon.
Stopping OpenSSH Daemon...
[ OK ] Stopped OpenSSH Daemon.
Starting OpenSSH Daemon...
[FAILED] Failed to start OpenSSH Daemon.
See 'systemctl status sshd.service' for details.
[ TIME ] Timed out waiting for device dev-ttyS0.device.
[DEPEND] Dependency failed for Serial Getty on ttyS0.
[ OK ] Reached target Login Prompts.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
')

and after that, the serial console is no longer responsive, and an nmap scan shows no open ports. Does anyone have any suggestions?
jbrnd
 
Posts: 17
Joined: Sun Jul 08, 2012 2:15 am

Re: A new kernel for oxnas

Postby jbrnd » Thu Sep 11, 2014 9:12 pm

I managed to figure it out - I built another kernel with some more config options enabled, and that one booted fine. I think it was CONFIG_FHANDLE that was missing in the other kernel images. Since a few people have asked in the thread how to build the kernel without replacing u-boot, this is what I did (using a Linux Mint desktop, ubuntu-based):

1. git clone -b oxnas https://github.com/kref/linux-oxnas.git
2. sudo apt-get install gcc-arm-linux-gnueabi u-boot-tools
3. Download the attached config file, unzip it, copy it to the linux-oxnas directory and name it .config
4. make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- -j4 zImage ox820.dtb
5. cat arch/arm/boot/zImage arch/arm/boot/dts/ox820.dtb > arch/arm/boot/zImage.fdt
6. /bin/sh scripts/mkuboot.sh -A arm -O linux -C none -T kernel -a 0x60008000 -e 0x60008000 -n 'Linux-3.11.1+' -d arch/arm/boot/zImage.fdt arch/arm/boot/uImage
7. Use your favourite tftp server to serve up the uImage file (I use tftp-hpa running on a Pogoplug v4).
8. Attach a serial cable, and at the u-boot prompt do "tftp 60500000 uImage", followed by "bootm 60500000".

Hopefully the kernel should now boot. I had an issue where the root partition would get mounted read-only, so it couldn't write the ssh keys to disk and therefore sshd wouldn't start. You can fix this over the serial console by doing "mount -o remount, rw /" followed by "ssh-keygen -A". There's probably some systemd config somewhere that needs to be changed for the partition to be mounted rw, but I didn't look into that yet.
Attachments
config.txt.gz
Kernel config
(13.14 KiB) Downloaded 1133 times
jbrnd
 
Posts: 17
Joined: Sun Jul 08, 2012 2:15 am

Re: A new kernel for oxnas

Postby WarheadsSE » Thu Sep 11, 2014 9:32 pm

Have you looked @ the doozan forums? Their working with newer, I think.
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 » Fri Sep 12, 2014 8:45 am

Yep, you can find newer kernel versions in the OpenWRT repo.
Can be patched iupto official 3.16.x. ;)
celemine1gig
 
Posts: 54
Joined: Fri Apr 26, 2013 7:55 pm

Re: A new kernel for oxnas

Postby cristiangutie » Fri Oct 10, 2014 4:02 pm

Hello guys!

I just got my pogo p21 device and found that its not longer supported by Archlinux. Searching by the forums today i found this thread that gave a little hope about installing linux in my box.The problem is that I'm a complete newbie in this field and i want to know if anyone of you guys could help me with the installation.

the project that i have in mind is to make a personal cloud system using owncloud.

I really appreciate any help you can provide.

Farewell!
C
cristiangutie
 
Posts: 2
Joined: Thu Oct 09, 2014 11:23 pm

Previous

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 5 guests