ChanServ changed the topic of #armlinux to: ARM kernel talk [Upstream kernel, find your vendor forums for questions about their kernels] | https://libera.irclog.whitequark.org/armlinux
XV8 has quit [Quit: Leaving]
apritzel has quit [Ping timeout: 240 seconds]
matthias_bgg has quit [Ping timeout: 258 seconds]
matthias_bgg has joined #armlinux
Pali has quit [Ping timeout: 272 seconds]
Nact has quit [Quit: Konversation terminated!]
mripard has quit [Read error: Connection reset by peer]
robinp has joined #armlinux
mripard has joined #armlinux
amitk has joined #armlinux
robinp_ has joined #armlinux
robinp has quit [Ping timeout: 272 seconds]
apritzel has joined #armlinux
CrashTestDummy3 has joined #armlinux
apritzel has quit [Ping timeout: 258 seconds]
CrashTestDummy2 has quit [Ping timeout: 272 seconds]
bps has joined #armlinux
bps has joined #armlinux
bps has quit [Changing host]
apritzel has joined #armlinux
bps has quit [Ping timeout: 252 seconds]
bps has joined #armlinux
bps has quit [Changing host]
bps has joined #armlinux
Misotauros has joined #armlinux
apritzel has quit [Ping timeout: 272 seconds]
Pali has joined #armlinux
bps has quit [Ping timeout: 258 seconds]
<ukleinek> narmstrong: do you still care for mach-oxnas? There is someone in #debian-arm who has a zyxel nsa210 ...
<ukleinek> (FTR: #debian-arm is on OFTC)
bps has joined #armlinux
bps has joined #armlinux
bps has quit [Changing host]
apritzel has joined #armlinux
bps has quit [Ping timeout: 265 seconds]
bps has joined #armlinux
wwilly__ has quit [Ping timeout: 272 seconds]
wwilly has joined #armlinux
<narmstrong> ukleinek: yes there is a board in kCi, what are the issues ?
<ukleinek> narmstrong: the issue is "no mainline support" :-)
<ukleinek> also there is no source available from zyxel any more, so some guessing involved
<narmstrong> ukleinek: ok no dtb dump ?
<ukleinek> pre-dt era
<Misotauros> so which sources should I try to compile for the nsa-210?
<ukleinek> I'd use the debian kernel with a dtb appended, nothing to compile (well, unless you count dts->dtb as compiling)
<Misotauros> ukleinek, but which debian-kernel? marvell/seagate/lacie??
<Misotauros> does it matter?
<ukleinek> armmp
<ukleinek> let me double check
<Misotauros> but kirkwood should be right?
<ukleinek> no
<ukleinek> Misotauros: the debian kernel doesn't have ARCH_OXNAS enabled :-\
<Misotauros> oh i see
<Misotauros> ok - I wanted to see how crosscompile works in gentoo anyways ;)
<ukleinek> Misotauros: to just try a recent mainline kernel, compile a armv5 oxnas config, append a device tree, wrap as uImage and try that one
<Misotauros> ukleinek, this will take a while. thanks for your help. I will get back to you ;)
<ukleinek> Misotauros: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
<Misotauros> the last dash is on purpose?
<j`ey> yes
<ukleinek> Misotauros: the build system calls $(CROSS_COMPILE)gcc and the cross compiler is usally arm-linux-gnueabi-gcc
<ukleinek> Misotauros: you might want to start with oxnas_v6_defconfig and then enable MACH_OX810SE instead of MACH_OX820
<Misotauros> ukleinek, is 4.19.0-14 recent enough?
<ukleinek> Misotauros: I'd pick 5.14-rc4 ...
<ukleinek> s/c4/c3/
<ukleinek> Misotauros: you have to disable ARCH_MULTI_V6 and ARCH_MULTI_V7 to be able to enable MACH_OX810SE
<ukleinek> Misotauros: Once you have a kernel and a dtb, you need to do: cat zImage your.dtb > dtbImage; mkimage -A arm -O linux -T kernel -C none -a 0x48008000 -e 0x48008000 -n tralala -d dtbImage uImage
<Misotauros> ok - I downloaded the kernel from: https://git.kernel.org/torvalds/t/linux-5.14-rc3.tar.gz and cant find the ARM settings
bps has quit [Ping timeout: 258 seconds]
<j`ey> arm settings?
<Misotauros> :) ok the cpu type. which should i pick?
Nact has joined #armlinux
<arnd> Misotauros, ukleinek, narmstrong: as far as I understand, the oxnas support upstream is rather incomplete, so just turning on the config options won't help unless you also have the driver patches applied
<ukleinek> Misotauros: Call: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- oxnas_v6_defconfig; make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- menuconfig
<ukleinek> arnd: yes, Misotauros doesn't expect USB and HD working :-)
<arnd> openwrt has an oxnas target that should work, no idea why the drivers never made it upstream
<arnd> Ok
<Misotauros> well... he would like them too... but... I`d be happy to see running kernel at least :)
<ukleinek> Misotauros: arnd's idea to pick patches from openwrt is a good one
<ukleinek> Misotauros: they have patches for sata, pci and usb
<arnd> Misotauros: have you tried installing openwrt as a first step? If they support your machine, you should be able to get a debian chroot from there, and then do the kernel as the third step
<ukleinek> .. based on 5.10, but still
<arnd> Might have to use the 5.4 version actually, iirc the 5.10 openwrt kernel had some issues on oxnas
<Misotauros> arnd, ok - that I will do.
<Misotauros> while building the crosscompiler
<j`ey> http://cdn.kernel.org/pub/tools/crosstool/ you can also grab a toolchain from here, that arnd built
<Misotauros> I can see the load address of openwrt kernel mitrastar_stg-212 is Load Address: 0x60008000 - can I change that easily?
<j`ey> arnd: the buildall.sh script link seems dead?
<Misotauros> j`ey, I wanted to see how to do that in gentoo anyways. and it seems quite comfortable.
<Misotauros> well.. if it were to run thorught :/
<ukleinek> Misotauros: then this is a different SoC
<Misotauros> darn
<Misotauros> omninas should to it then?
bps has joined #armlinux
bps has joined #armlinux
bps has quit [Changing host]
bps has quit [Ping timeout: 272 seconds]
bps has joined #armlinux
bps has joined #armlinux
bps has quit [Changing host]
bps has quit [Remote host closed the connection]
bps has joined #armlinux
bps has joined #armlinux
bps has quit [Changing host]
bps has quit [Ping timeout: 272 seconds]
Misotauros is now known as Misanthropos
CrashTestDummy has joined #armlinux
CrashTestDummy3 has quit [Ping timeout: 272 seconds]
bps has joined #armlinux
nsaenz has quit [Remote host closed the connection]
robinp_ has quit [Ping timeout: 240 seconds]
robinp has joined #armlinux
robinp_ has joined #armlinux
robinp has quit [Ping timeout: 272 seconds]
apritzel has quit [Ping timeout: 252 seconds]
bps has quit [Ping timeout: 272 seconds]
bps has joined #armlinux
bps has joined #armlinux
apritzel has joined #armlinux
apritzel has quit [Ping timeout: 258 seconds]
<Misanthropos> ukleinek, i got the kernel... which is nice. but after starting no serial.. I think I should be able to tty through serial so maybe the kernel does not boot correctly?
<Misanthropos> any ideas on that?
<Misanthropos> last famous log entries: Load Address: 48008000
<Misanthropos> Entry Point: 48008000
<Misanthropos> Verifying Checksum ... OK
<Misanthropos> OK
<Misanthropos> Starting kernel ...
<xdarklight> Misanthropos: try adding earlycon to the kernel cmdline (assuming your serial console driver supports that) to see the early boot output (where it might be crashing and thus not getting to the point where normal serial console would take over)
<Misanthropos> the flag is set. I will try it
<Misanthropos> no output :/
apritzel has joined #armlinux
prabhakarlad has quit [Quit: Client closed]
prabhakarlad has joined #armlinux
scosu_ has joined #armlinux
nsaenz has joined #armlinux
scosu has quit [Ping timeout: 272 seconds]
amitk has quit [Ping timeout: 250 seconds]
<ukleinek> Misanthropos: which dt did you use?
<ukleinek> Misanthropos: and which kernel version, which patches?
<ukleinek> Misanthropos: the UARTs are 8250 compatible, so getting earlycon up and running is just a matter of right configuration.
<ukleinek> the vendor kernel is booted using console=ttyS0,115200n8, so that's the UART at 0x200000
matthias_bgg has quit [Quit: Leaving]
macromorgan has quit [Ping timeout: 240 seconds]
macc24 has quit [Quit: WeeChat 3.2]
Pali has quit [Ping timeout: 256 seconds]