A new kernel for oxnas

This forum is for all other ARMv5 devices

Re: A new kernel for oxnas

Postby WarheadsSE » Fri Nov 22, 2013 7:05 pm

I'm still following this conversation for moving forward with reinstating the OX820 family.
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 » Sat Nov 23, 2013 3:19 pm

Could it be that one absolutely needs a newer uboot version to load the new 3.12 kernel?
I tried booting my test kernels, but couldn't. I understand that these new kernels use flat device tree, i.e. a extra dtb file. But I also couldn't boot when attaching the dtb to the kernel imge manually, or through the kernel configuration option.
But I ddin't try the newer uboot version, that navym provides, yet.
I'll also try navym's 3.1.11 kernel tody, if I find the time. If that works, it probably is a Uboot problem.

Edit:
How embarassing! I just got navym's kernel via git (oxnas branch) and realized that it was version 3.11.1 and NOT 3.1.11. :D So if the mentioned problem is a uboot problem, it probably won't work with 3.11.1, too.
So, next step: Compiling a new uboot version now.
celemine1gig
 
Posts: 54
Joined: Fri Apr 26, 2013 7:55 pm

Re: A new kernel for oxnas

Postby mikeh49 » Sat Nov 23, 2013 9:39 pm

I'm interested in using a Pogo P21 and a Pogo Pro as streaming music players outputting to a USB DAC. I understand that Warheads OXNAS kernel does not have working USB audio features and, in fact, I could not get alsa to work on this kernel with a Debian Squeeze filesystem.

So, does this new kernel have working audio such that alsa will work with an external USB sound device? If so, that would be great! I don't need high performance SATA or the latest filesystem. I think Emdebian would be OK also; but I don't need to install it in NAND. My idea is a USB flash drive in the front USB port, as I have on a Pogo E02.

I am a very basic Linux user, so need more help than I have been able to get so far from this thread, as far as installing the new kernel and uboot. So far, I have installed Arch linux on both the P21 and Pro, and they boot fine. One of them is running as a music server with an external USB hard drive. I guess I have some version of uboot in NAND.

Could someone answer the audio question and provide an overview of how to upgrade the kernel.

Thanks.
mikeh49
 
Posts: 1
Joined: Sat Nov 23, 2013 9:24 pm

Re: A new kernel for oxnas

Postby celemine1gig » Sat Nov 23, 2013 11:49 pm

OK, getting a newer uboot version alone isn't as easy as I had hoped it would be. Any hints are highly appreciated!

@navym:
I found your wiki that describes using your provided u-boot as the bootloader for direct SATA booting.
Did you also test it with NAND as well?

@WarheadsSE:
I found a comment from you that stated that loading plain "u-boot.bin" was not going to work on these devices. I guess the wrapping of your "stage1/packager" (from your main uboot sources) is needed? I only got "bad magic number" or nothing when trying to load my uboot binaries, so far. But I didn't try the packager, yet.

Guys, thank you very much in advance! ;)

Edit 1: Compiled the old Uboot 1.14 sources from WarheadsSE and could tftp and load the u-boot.bin from that. Now why doesn't the u-boot.bin, compiled from the newer sources, work? Hmm... :?:

Edit 2:
All I get with my freshly compiled 3.12 kernels and the stock u-boot is $this->bbcode_second_pass_code('', 'Uncompressing Linux... done, booting the kernel.')
And that's that.
celemine1gig
 
Posts: 54
Joined: Fri Apr 26, 2013 7:55 pm

Re: A new kernel for oxnas

Postby navym » Sun Nov 24, 2013 5:10 am

https://github.com/kref/linux-oxnas/wik ... the-kernel
$this->bbcode_second_pass_quote('', 't')o generate old u-boot compatible uImage
ARCH=arm make ox820_defconfig
ARCH=arm make menuconfig
Boot options --->
[*] Use appended device tree blob to zImage (EXPERIMENTAL)
[*] Supplement the appended DTB with traditional ATAG informati
you may also want to disable PCI support if you device does not have one
ARCH=arm make -j8 zImage ox820.dtb
cat arch/arm/boot/zImage arch/arm/boot/dts/ox820.dtb > arch/arm/boot/zImage.fdt
/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



build u-boot for nand

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- ox820_nand_config
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j4 all u-boot.img
to generate encoded stage1 from spl/u-boot-spl.bin, you need a small script
basically, it turn each 1 bit to 0x55, 0 bit to 0xAA to alleviate bit flips
https://github.com/wagle/addnas_source/ ... /encode.py
then flash encoded stage1 to 0x0, u-boot.img to 0x40000
navym
 
Posts: 17
Joined: Tue Sep 24, 2013 2:11 am

Re: A new kernel for oxnas

Postby celemine1gig » Sun Nov 24, 2013 11:04 am

Thank you very much :!:
If that works, I obviously did something wrong.
celemine1gig
 
Posts: 54
Joined: Fri Apr 26, 2013 7:55 pm

Re: A new kernel for oxnas

Postby WarheadsSE » Sun Nov 24, 2013 1:37 pm

That's got a lot of interesting pieces of code ... 8-)
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 ShapeShifter499 » Mon Nov 25, 2013 3:51 pm

Hi,

On a whim I brought one of these Pogoplug Pro devices from a ebay trusted seller sale, 19 bucks. I thought it would be neat to have a extra server that took up little power around adding to one netbook I had already setup as a server. I never set up debian or arch for a Pogoplug before and I was looking around to see if there was a newer kernel, I landed here. How do I get this into a debian or arch setup? Does this newer kernel support the built in wifi? I'd rather have a debian setup, all of my other computers run debian.
ShapeShifter499
 
Posts: 34
Joined: Mon Nov 25, 2013 12:24 pm

Re: A new kernel for oxnas

Postby WarheadsSE » Mon Nov 25, 2013 4:03 pm

Check forum.doozan.com for debian.
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 ShapeShifter499 » Mon Nov 25, 2013 4:12 pm

How do I get the kernel and uboot into the debian install?

Edit: guess I'll ask over at forum.doozan.com
ShapeShifter499
 
Posts: 34
Joined: Mon Nov 25, 2013 12:24 pm

PreviousNext

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 11 guests

cron