A new kernel for oxnas

This forum is for all other ARMv5 devices

Re: A new kernel for oxnas

Postby Mijzelf » Mon Nov 25, 2013 4:14 pm

Any idea how hard it will be to get this also running on the Ox810?
Mijzelf
 
Posts: 25
Joined: Wed Feb 20, 2013 8:44 am

Re: A new kernel for oxnas

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

Considering the cores are quite a bit different, a bit.
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 Nov 25, 2013 5:41 pm

Interesting and strange at the same time:
From the stock U-Boot 1.1.2 on one of my Pogoplug V3 B04 devices, I just can't erase nand. Instead I get an immediate device reset, when trying to do so. :!: :?:
Next try will be from within Linux, following navym's instruction. Hope it will boot from a working new u-boot then. Fingers crossed.
BTW, all the Pogo V3 devices seem to have that behaviour, when it comes to NAND and stock U-Boot.
Anyone noticed before?
Edit:
BIG THANKS!
New U-Boot is running fine, as it seems. Now moving on to more tests on the kernel, tomorrow, probably.
Erasing and flashing the NAND worked like a charm from within Linux.
Edit 2:
Unfortunately, for example the USB functionality of navym's U-Boot version seems very buggy. Issueing a "usb start" command leads to a following device hang. Some other functions seem to have the same effect.

Edit 3: Forget my previous comment!
The USB problems were merely caused by me using a (seemingly unstable) external 5V power supply to power my test Pogoplug V3 B04. After switching back to the default power supply, the USB functionality is working like it should. Sorry!
celemine1gig
 
Posts: 54
Joined: Fri Apr 26, 2013 7:55 pm

Re: A new kernel for oxnas

Postby celemine1gig » Sat Nov 30, 2013 11:43 pm

OK, so I could finally successfully boot the kernel version 3.12 on my Pogoplug V3 B04 Classic.

Key to a successful boot was the bootarg "rootwait" (without a specified time!). It does seem that this kernel needs a lot of time to fully bring up the usb interface. So without the "rootwait" option, I always got a vfs oops telling me that root could not be mounted from /dev/sda1.
Could work better with root on SATA or NAND. Didn't try that yet.

Now I will experiment with kernel configurations and do some performance testing of my own.
So far I am also using the newest U-Boot from navym and I have to say that booting completely from USB (kernel + rootfs) is quite convenient for testing. ;)
The new parts look very promising! :D
celemine1gig
 
Posts: 54
Joined: Fri Apr 26, 2013 7:55 pm

Re: A new kernel for oxnas

Postby crckmc » Mon Dec 02, 2013 10:25 am

Hey all,

I'm compiling the new kernel right now and want to create a bootable sata hdd. I did this several times using WarheadSE's disk_create script and the default uBoot but now I wonder how to get the new uBoot and stage1 to work with the script.
So my question: What do I have to do to create the stage1.wrapped and uboot.wrapped files?

Thanks in advance

crckmc
crckmc
 
Posts: 8
Joined: Sun Nov 17, 2013 9:05 am

Re: A new kernel for oxnas

Postby navym » Mon Dec 02, 2013 11:40 am

you dont have to use the new u-boot to try the kernel, just build a uImage with builtin device tree blob:
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
navym
 
Posts: 17
Joined: Tue Sep 24, 2013 2:11 am

Re: A new kernel for oxnas

Postby celemine1gig » Mon Dec 02, 2013 2:45 pm

The problems I initially had with the kernel 3.12, which then made me try the newer UBoot version, simply were configuration issues on my part. As navym said, it should work with the stock UBoot version, too.

There are some settings that for example work for a Kirkwood device and the 3.12 kernel, but don't for the sources that navym published. If I am not mistaking, the main difference is the handling of UART for dbugging. There seem to be some "odd" dependencies in the sources ATM. I am no expert on the matter, though. I just think hat it should be possible to get UART printk messages without having kernel low level debugging enabled. And at the moment it seems that exactly these two are a MUST to get a valid output over the serial console.

But don't get me wrong, I really and honestly highly appreciate the work that is done on these new sources! Just something I noticed when testing, that seemed strange at first.
celemine1gig
 
Posts: 54
Joined: Fri Apr 26, 2013 7:55 pm

Re: A new kernel for oxnas

Postby crckmc » Mon Dec 02, 2013 3:55 pm

thanks navym it boots now but I can't get it to acquire an ip. When I look at the logs I see dhcpcd timing out 38 seconds after boot but when I look with wireshark no traffic is coming from the plug. Anything I forgot to set? I tried setting a static ip in /etc/rc.conf but it had no effect
crckmc
 
Posts: 8
Joined: Sun Nov 17, 2013 9:05 am

Re: A new kernel for oxnas

Postby celemine1gig » Mon Dec 02, 2013 4:05 pm

MAC-Address problems maybe?
The ethernet driver in this kernel generates a fresh MAC on every boot. If you do not specify a static MAC address via the "hwaddress ether" setting in Debian's /etc/network/interfaces. ;)
celemine1gig
 
Posts: 54
Joined: Fri Apr 26, 2013 7:55 pm

Re: A new kernel for oxnas

Postby navym » Mon Dec 02, 2013 4:16 pm

What config options from kirkwood? I know nothing about that SOC, so I would say good luck.
About $this->bbcode_second_pass_quote('', '&')quot;odd" dependencies in the sources ATM
, I do not understand, so maybe it is not the case.
navym
 
Posts: 17
Joined: Tue Sep 24, 2013 2:11 am

PreviousNext

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 14 guests