Welcome! Log In Create A New Profile

Advanced

Linux Kernel 5.4.268 Oxnas (OX820) Pogo V3 package and Debian rootfs

Posted by bodhi 
Re: Linux Kernel 3.15.3 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
July 29, 2014 01:10AM
agiorgio Wrote:
-------------------------------------------------------
> The plug was running Debian Squeeze, and I
> replaced the root filesystem on the USB hard disk
> with shv's Wheezy one. That seemed to work
> perfectly. It's been a while since I hacked that
> plug to run Debian, and I don't remember exactly
> what I did. I'll probably end up just leaving it
> alone, since I'm just using it as a remote backup
> device.

You are running stock U-Boot, so the envs must be listed/edited with blparam. Except if you have serial console, then in serial console it's printenv/setenv.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
新手提问:我想使用声卡,但是看上去不支持,我该怎么做?谢谢!
Newbie question: I want to use a sound card, but does not support, what do I do? Thank you!
Thanks for keeping this cheap device alive.
Has anyone booted from sata and if so is there a guide for booting from sata?

Thanks.
Re: Linux Kernel 3.15.3 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 01, 2014 06:54PM
Yes. It should work. I meant to release u-boot images for this, but have not get around to test it. Booting directly with SATA is really not necessary, since you can put just the rootfs on SATA and boot it with NAND u-boot, similar to USB. So in this case, this bootable SATA is only used as a backup booting mechanism.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
My drive is both usb/sata and it boots fine from usb but not from sata. When i try to boot from sata i get this error, seems like it's not even detecting the drive:
Main Loop
Hit any key to stop autoboot:  0
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
Wrong Image Format for bootm command

Led:    ORANGE (Failed)
ERROR: can't get kernel image!
stopping USB..
resetting ...


I'm using your latest u-boot.
This is my fw_printenv do i need to change something (drive is formatted ext4):

autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8
bootcmd=run dt_bootcmd_usb
bootdelay=10
console=console=ttyS0,115200n8
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dtb_addr=0x62c00000
ethact=mii0
ethaddr=00:25:31:01:EF:B3
if_netconsole=ping $serverip
ipaddr=192.168.1.222
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot_nc=run if_netconsole start_netconsole
serverip=192.168.1.119
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
stderr=serial
stdin=serial
stdout=serial
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_device=0:1
usb_rootfstype=ext4
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10
Re: Linux Kernel 3.15.3 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 02, 2014 03:49PM
jman,

The default u-boot settings is for booting USB drive. To boot SATA, you will need to clone them for SATA. For example:
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
would become
dt_bootcmd_sata=ide reset; run dt_sata_bootcmd; reset
And
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
would become
dt_load_uimage_sata=ext2load ide 0:1 $uimage_addr /boot/uImage

And so on for the rest of other envs that specify usb as the boot drive. If you're not sure, prepare them in a notepad, and paste them here for checking. And do these in serial console, without saving them until after you can boot into Debian.

BTW, I'll include SATA boot option envs in the next release of the envs image in the OXNAS U-Boot thread.

And please continue this subject in the u-boot thread.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 3.15.3 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 02, 2014 05:24PM
Vince,

Quote

Newbie question: I want to use a sound card, but does not support, what do I do? Thank you!

Please be a litle more detailed in your question! which system, kernel version, sound card model,… things like that. May be someone already done it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
shv
Re: Linux Kernel 3.15.3 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 03, 2014 01:34AM
@bodhi,
I found the reason for the problem with network not available due to "Configuring network interfaces...SIOCSIFHWADDR: No such device". It could occur that a wrong or different MAC address is registered in /etc/udev/rules.d/70-persistent-net.rules. To solve the problem it is just necessary to remove the line(s) form the file.

-shv



Edited 3 time(s). Last edit at 08/03/2014 01:46AM by shv.
Hi,
first: Thanks for your good work!

I tried to compile a (newer) kernel, since your kernel is missing most of the modules and drivers i need (dvb-usb, usb-network), but i don't get the kernel to boot on my pogo B01 (without PCI).

I checked out the vanilla kernel at kernel.org (kernel 3.15.8) and applied your patch. All but one hunk went fine, the last one was easy to change on my own.

Watching the boot-process via serial console shows the following error message:

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000480).

Available machine support:

ID (hex)        NAME
ffffffff        PLXTECH NAS782X SoC (Flattened Device Tree)

Please check your kernel config and/or bootloader.

Maybe someone could give me a hint where to investigate further.
Thanks in advance;



Edited 1 time(s). Last edit at 08/05/2014 07:53AM by fkyle.
Did you load the correct dtb file? Does not really look like it, though.
I took the .dtb-file for pogo classic shipped with bodhi's kernel.
Is this a suitable way?

How do i tell the the kernel to compile for pogo classic, not pro? I did not find a way to select this in menuconfig.
My guess would be that you probably only told U-Boot to load the uImage file, but not the device tree (.dtb) file, together with it. That would explain why the kernel complains that it does not know the Hardware it is supposed to run on.

Could be something else, though, too. Not enough Information from your part, so far.



Edited 2 time(s). Last edit at 08/05/2014 01:46PM by ingmar_k.
Re: Linux Kernel 3.15.3 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 05, 2014 02:34PM
@fkyle,

You don't need to compile for the Classic. Compile for the Pro and when you use the Classic DTB to boot it will be OK. Re the error in booting, please post your output of printenv in serial console.

I think what igmar said was most likely the case, missing dtb in bootm command?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 08/05/2014 02:40PM by bodhi.
I have a Pogoplug Pro and P22 (as labeled on the bottom of the pogoplug itself) that I want to get up and running with Debian and/or Arch.

In general, how do you know if you have a "Pogo V3 Classic (no PCI)" or one with PCI? Is there a command that can be used to determine this? Thanks
Re: Linux Kernel 3.15.3 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 07, 2014 12:49AM
grayman4hire,

SSH into Pogo OS, try running lspci or ifconfig (the PCI is populated with wifi card in the Pro).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hi,
i have built the .dtb-file with my new kernel by running "make ox820-pogoplug-classic.dtb". I then copied the resulting .dtb-file to /boot/dts, while my self-built uImage and uInitrd reside in /boot/.

Where do you normally get the zImage and initrd.img-file? I used the zImage-file from the kernel-source directory arch/arm/boot and the uInitrd.img-3.15.8-oxnas-tld-1, which was installed in /boot/ by the debian-package. Is there a smarter way where to find the initrd.img?

I attached my environment-variables from u-Boot. I assume them to be correct, because they can boot bodhi's kernel without any problems.

OX820 # printenv
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8
bootcmd=run dt_bootcmd_usb
bootdelay=10
console=console=ttyS0,115200n8
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_bootm=bootm $uimage_addr $uinitrd_addr
dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-classic.dtb
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dtb_addr=0x62c00000
ethact=mii0
ethaddr=5e:2b:15:71:ec:b6
if_netconsole=ping $serverip
ipaddr=192.168.0.222
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot_nc=run if_netconsole start_netconsole
serverip=192.168.0.220
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
stderr=serial
stdin=serial
stdout=serial
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_device=0:1
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10

Environment size: 1186/131068 bytes

Re: Linux Kernel 3.15.3 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 07, 2014 03:01PM
fkyle,

> Where do you normally get the zImage and
> initrd.img-file? I used the zImage-file from the
> kernel-source directory arch/arm/boot and the
> uInitrd.img-3.15.8-oxnas-tld-1, which was
> installed in /boot/ by the debian-package. Is
> there a smarter way where to find the initrd.img?

That the easiest way to get initrd.img. And zImage should be retrieved from arch/arm/boot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
bodhi,
is it possible to support drivers/kernel modules for wifi and huawei 3g dongles in future versions of this kernel?
Yes
Re: Linux Kernel 3.15.3 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 13, 2014 06:05PM
@theliquid,

I could add them in 3.16, when I get time to do it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
This would nice! I'd like to use my Pogoplug V3 as a WiFi / 3G rescue box.
Re: Linux Kernel 3.15.3 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 22, 2014 06:29PM
@theliquid,

Quote

> is it possible to support drivers/kernel modules
> for wifi and huawei 3g dongles in future versions
> of this kernel?

I'm about to build new kernel for Pogo V3. Do you have in mind a specific Huawei 3G dongle that you'd like to include? if you also know which driver modules are used, also very helpful!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 3.16.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 24, 2014 07:17PM
Kernel linux-3.16.0-oxnas package was uploaded. Please see 1st post for download link.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 08/24/2014 07:18PM by bodhi.
bodhi Wrote:
-------------------------------------------------------
> Kernel linux-3.16.0-oxnas package was uploaded.
> Please see 1st post for download link.


Hi bodhi!
Sorry I was off for some days, but anyway thanks for the new kernel. I'll try it asap.
I have several Huawei modems (E160, E172 etc.), I think it's all the same driver/module. I don't know which it is exactly, it worked with my Raspberry Pi out of the box (maybe this helps?).
First of all, thanks to the community for keeping this device alive.
Just dusted of my V3 non-pro and trying to get it too run with the latest Debian rootfs.
The plug is running an ancient version of Arch (2012.05 rootfs).
Can I just use the 3.12.13 rootfs listed in the OP or do I need to update uBoot first?
Hey bodhi!

I just tested the kernel and it's working fine. Huawei modem gets detected normally and wifi also works.

But I can't connect with wvdial. It seems ppp_generic module is missing.

Aug 27 21:35:56 PogoV3 pppd[7844]: Couldn't open the /dev/ppp device: No such device or address
Aug 27 21:35:56 PogoV3 pppd[7844]: Please load the ppp_generic kernel module.
Aug 27 21:36:03 PogoV3 kernel: [ 2512.911211] option1 ttyUSB0: option_instat_callback: error -2
Aug 27 21:38:01 PogoV3 pppd[7875]: Couldn't open the /dev/ppp device: No such device or address
Aug 27 21:38:01 PogoV3 pppd[7875]: Please load the ppp_generic kernel module.
Aug 27 21:38:07 PogoV3 kernel: [ 2637.680693] option1 ttyUSB0: option_instat_callback: error -2
Aug 27 21:38:54 PogoV3 kernel: [ 2684.550702] option1 ttyUSB0: option_instat_callback: error -2
Aug 27 21:40:16 PogoV3 pppd[7914]: Couldn't open the /dev/ppp device: No such device or address
Aug 27 21:40:16 PogoV3 pppd[7914]: Please load the ppp_generic kernel module.

/etc# modprobe ppp_generic
FATAL: Module ppp_generic not found



Edited 2 time(s). Last edit at 08/27/2014 02:48PM by theliquid.
Re: Linux Kernel 3.16.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 27, 2014 03:33PM
@theliquid,

Thanks for testing! I'll take look.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 3.16.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 27, 2014 03:42PM
@iddqd,

> The plug is running an ancient version of Arch
> (2012.05 rootfs).
> Can I just use the 3.12.13 rootfs listed in the OP
> or do I need to update uBoot first?

The instruction on the first page (2 ways to install). To run with stock u-boot you must load it using tftp, because stock u-boot does not have USB.

However, if you are running ALARM installation (WarheadsSE u-boot version) then it might work (can't recall exactly) with the DTB embedded in uImage. U-boot envs will have to change to load uImage from USB.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 3.16.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 27, 2014 04:15PM
@theliquid,

Indeed, the ppp module is missing from kernel config. This is why I needed to merge Kirkwood kernel config to this Oxnas config, but never have time to do a proper job, so procastination set in :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 3.16.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 29, 2014 03:51PM
@theliquid,

Please install this release and let me know if PPP is working:

linux-3.16.0-oxnas-tld-2-bodhi.tar.bz2
md5sum
892337daf4986390cc034d8be3ce56de

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Sorry, you can't reply to this topic. It has been closed.