<edolnx>
naobsd, Already tried booting a system using the existing kernel and a USB device. The kernel appears to panic, because it just stops spitting out boot messages at about the time it needs a rootfs. Just unpacked the initramfs from Android, trying to figure out what magic it's doing and how to adapt that to pivot_root to my USB drive
<edolnx>
just adding a new root= kernel command line to the params file was not enough. It looks like the android initramdisk doesn't support pivot root and the init process is some binary. Sigh.
<naobsd>
why do you use android initramfs? if you want linux, just use linux initramfs
<naobsd>
android kernel is linux but android userland(initramfs/rootfs/etc) is not linux distro
<edolnx>
The initramfs images I have are for a different kernel. Haven't built one by hand in a very long time
<edolnx>
I guess I can try the default debian one. It might work.
fireglow- has joined #linux-rockchip
fireglow has quit [Ping timeout: 246 seconds]
VargaD has quit [Ping timeout: 246 seconds]
fireglow- is now known as fireglow
em|biketron has joined #linux-rockchip
mrueg_ has joined #linux-rockchip
RayFlower has quit [*.net *.split]
em|biket1on has quit [*.net *.split]
tnn has quit [*.net *.split]
mrueg has quit [*.net *.split]
Danukeru has quit [*.net *.split]
Ueno_Otoko has joined #linux-rockchip
leming has quit [*.net *.split]
VargaD has joined #linux-rockchip
leming has joined #linux-rockchip
arield_ has joined #linux-rockchip
diego71_ has joined #linux-rockchip
mrueg has joined #linux-rockchip
VargaD_ has joined #linux-rockchip
leming has quit [*.net *.split]
VargaD has quit [*.net *.split]
mrueg_ has quit [*.net *.split]
robogoat has quit [*.net *.split]
arield has quit [*.net *.split]
diego71 has quit [*.net *.split]
vickycq has quit [*.net *.split]
chris2 has quit [*.net *.split]
VargaD_ is now known as VargaD
robogoat has joined #linux-rockchip
leming has joined #linux-rockchip
vickycq has joined #linux-rockchip
chris2 has joined #linux-rockchip
<edolnx>
Well, partial success. Stripping the kernel modules out of the Debian 8 default initrd worked, but due to systemd weirdness neither the serial console was found (no ttyS2) and the Ethernet network didn't come up (probably not eth0). Going to try and compile kmscon to get a console on the HDMI interface and make a few other changes.
<naobsd>
serial console on android kernel should be ttyFIQ0
<naobsd>
I don't know systemd works with android kernel
<edolnx>
naobsd, Ah! I'll give that a shot. The params file said ttyS2 on mine, and that works for getting the boot and kernel messages but systemd didn't make a ttyS2 device to put a console on
<naobsd>
oh I forgot it's rk3368... sure, it's ttyS2 on rk3368
<naobsd>
ttyFIQ0 is for rk3288 and older
<edolnx>
Yeah, I'm betting this is just some systemd weirdness in device naming.
Danukeru has joined #linux-rockchip
<edolnx>
bah! I can't cross-compile kmscon, so I'll just install a basic lxde environment and see if that helps
tnn has joined #linux-rockchip
Ueno_Otoko has quit [Ping timeout: 240 seconds]
hipboi has joined #linux-rockchip
hipboi_ has quit [Ping timeout: 264 seconds]
<topi`>
edolnx: I have a SATA disk on my Rock2 and I just set up root=/dev/sda2 in the boot params and voila, it boots from the disk
<topi`>
it might be that for USB disks, you need rootwait argument
<topi`>
oh and btw, the rk3288 cpu's are pretty *fast* :)
<edolnx>
good to know!
<topi`>
naobsd: systemd might not work with Android kernels, since it needs a couple of special things enabled (especially the Cgroups)
<edolnx>
I've got two geekbox devices on backorder and a cubieboard 4 "in the mail" - maybe I'll add a Rock2 to that list
<topi`>
I've tried to get systemd working on an old 3.4 kernel, and it was very difficult, despite the fact that 3.4 alraedy supports Cgroups
<topi`>
edolnx: the Rock2 is a very decent board, and you can order even a 4GB ram variant
<edolnx>
That's exciting
<topi`>
however, I want an Aarch64 board
<topi`>
I have some stuff that won't work on 32 bits at all, or with some fixes
<edolnx>
topi`, Well, my MK68 is now booting Linux - just can't login :D
<topi`>
and mmap() is a wonderful tool for a programmer, but that might fail when moving the software to a 32-bit platform
<edolnx>
bummer, the 4GB rock2 is sold out
<naobsd>
what's "won't work on 32 bits"?
<topi`>
naobsd: some server software mainly
<topi`>
e.g. Riak's port of LevelDB relies on 64bit constructs and fails miserably on a 32bit platform
<topi`>
and I want that LevelDB to create my own "private" AWS S3 service
<topi`>
the guys don't even want to fix it, because they consider 32-bit platforms "legacy"
<topi`>
so I stopped asking and tried to find out cheap 64-bit solutions instead
<topi`>
the idea is to create the Cheapest possible AWS S3 compatible service. I am using 1TB 2.5" disks
<topi`>
another reason for not using Intel is just pure paranoia. Everybody knows Intel's RNG is crippled to let NSA in.
<topi`>
but I'd eat my hat if Intel will be able to sell Bay Trails cheaper than the RK3368 which is a dirt cheap part
<naobsd>
hm
<naobsd>
I cannot compare them
<edolnx>
topi`, I agree the RNGs are suspect, but I tend to use either OneRNG or TrueRNG on all critical systems so it's not such a big deal
<naobsd>
performance, reliability, etc etc
<edolnx>
Is the SATA interface on the Rock/Rock2 native or is it a USB adapter?
<naobsd>
Rock2 has USB-SATA. Rock doesn't have it.
<edolnx>
I'm guessing only the Allwinner chips (and the actual server parts from APM or AMD) have native SATA then. Good to know.
cristian_c has joined #linux-rockchip
<ganbold>
edolnx: get nvidia tegra jetson k1 board, it has native sata and 99$
<edolnx>
Ah! I forgot about that
<edolnx>
ganbold, thanks for that tip
<ganbold>
that should be fast beast to run anything on it :)
GNorth has joined #linux-rockchip
<edolnx>
ganbold, where do you get them from? They are $190+ on Amazon. Is there a better retailer?
<ganbold>
maybe only US, canada, but you can find someone to ship it to you
<edolnx>
I'm in the US, so that's not a problem :)
<ganbold>
nice :)
<edolnx>
Ironically, that makes this easy but every other ARM system I've bought "interesting"
<ganbold>
people say tegra has good documentation
<ganbold>
there is also ifc6410 board from inforcecomputing
<ganbold>
but that is snapdragon
<ganbold>
qualcomm
<edolnx>
looks like that board only comes with Android. The TK1 has Ubuntu support, so that's a win for me
<ganbold>
yes
<ganbold>
you can also run FreeBSD and NetBSD on it too :) if you are bored with linux
<ganbold>
edolnx: on another hand if you want MIPS there are some cheap options with SATA too :)
<edolnx>
Thanks, but not right now. Mostly working on ARMv7 and ARMv8 for the Chef community
<edolnx>
Alright folks, it's late here and I'm going to call it a night. Thanks for all the help, as usual! kmscon didn't help the Debian system, but I'll get it somehow (maybe with a USB NIC tomorrow)
ganbold has quit [Quit: Leaving]
ganbold has joined #linux-rockchip
<mmind00>
edolnx: regarding systemd and devices, make sure CONFIG_FHANDLE is active (seems to be a big requirement)
Ueno_Otoko has joined #linux-rockchip
markm has quit [Ping timeout: 272 seconds]
markm has joined #linux-rockchip
jas-hacks has joined #linux-rockchip
em|biketron has quit [Ping timeout: 260 seconds]
em|biketron has joined #linux-rockchip
GNorth has quit [Remote host closed the connection]
GriefNorth has joined #linux-rockchip
c0d3z3r0 has quit [Ping timeout: 272 seconds]
c0d3z3r0 has joined #linux-rockchip
mmind00 has quit [Ping timeout: 260 seconds]
jas-hacks has left #linux-rockchip [#linux-rockchip]
mmind00 has joined #linux-rockchip
cnxsoft has quit [Quit: cnxsoft]
em|biketron has quit [Ping timeout: 240 seconds]
em|biketron has joined #linux-rockchip
gb_master has joined #linux-rockchip
gb_master has quit [Remote host closed the connection]
c0d3z3r0 has quit [Ping timeout: 260 seconds]
c0d3z3r0 has joined #linux-rockchip
jas-hacks has joined #linux-rockchip
Ueno_Otoko has quit [Ping timeout: 240 seconds]
<topi`>
ganbold: the ifc6410 has Snapdragon 600, which is problematic. I have a CM-QS600 board which is basically very similar - and even the newest linaro releases are totally unstable with it
bamvor has quit [Ping timeout: 276 seconds]
bamvor has joined #linux-rockchip
<topi`>
otherwise; the Tegra K1 absolutely rocks - it's approximately as fast at compiling the linux kernel with make -j6 as my Macbook Air 1.7 GHz Core i5
<topi`>
of course this is an older Sandy Bridge part, but nevertheless...
GriefNorth has quit [Remote host closed the connection]
tnn has quit [*.net *.split]
Danukeru has quit [*.net *.split]
<edolnx>
Yeah, I may need to compile a kernel which may be tough. I don't know if all the necessary patches for the 3368 are in mainline, and I'm not sure where to get the source for the 3.10 kernel it's currently using
jas-hacks has left #linux-rockchip [#linux-rockchip]
Danukeru has joined #linux-rockchip
Danukeru has quit [Client Quit]
Danukeru has joined #linux-rockchip
<mmind00>
edolnx: that depends on what functionality you need :-) ... aka most core things except graphics is the current state
<edolnx>
mmind00, That's good to know. It's been a _long_ time since I built a kernel (never mind a cross-compiled one) so I'll see what I can do.