narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - Publicly Logged on https://irclog.whitequark.org/linux-amlogic
porfiriopaiz has joined #linux-amlogic
jakogut_ has joined #linux-amlogic
porfiriopaiz has quit [Quit: leaving]
wens_ is now known as wens
_whitelogger has joined #linux-amlogic
Barada has joined #linux-amlogic
Barada has quit [Quit: Barada]
Barada has joined #linux-amlogic
<dlan> xdarklight: sorry, I didn't tell you.. I've resigned my job from Amlogic about month ago
lissyx has joined #linux-amlogic
afaerber has joined #linux-amlogic
ldevulder has joined #linux-amlogic
<aep2> which dts would i use for the S912 ? does that even work yet?
<aep2> oh of course thats board specific. i guess you extract that out of the existing firmware?
<xdarklight> dlan: didn't know that (sorry for bothering you) - and enjoy your new job!
<xdarklight> aep2: what board do you have? S912 is called GXM upstream
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
shadeslayer_ is now known as shadeslayer
rcasa has joined #linux-amlogic
<aep2> xdarklight: some no name china thing called "H96 pro+". i think its similar to the NEXBOX A1
<aep2> the nexbox dtb sort of boots, but lacks all the peripherals like ethernet
<aep2> i'm going to try extracting the stock dtb out of the flash chip
<xdarklight> aep2: can you pastebin the dmesg output?
<aep2> of the stock kernel or mainline?
<xdarklight> dmesg of the mainline kernel
<xdarklight> can you pastebin your kernel .config please?
<aep2> yep
<aep2> this thing has an RTL8211F. its comming up but resetting alot
<aep2> internal flash isnt coming up at all
<xdarklight> weird, CONFIG_DWMAC_MESON=m
<xdarklight> so it should load the dwmac-meson8b driver (instead of the plain stmmaceth driver)
<aep2> is there an upstream defconfig i can just try instead of buildroot?
<aep2> dont want to waste your time with broken buildroot config
<aep2> just the default one should work?
<aep2> i'll give it a shot
<xdarklight> I'm not sure btw how buildroot works and if/how kernel modules have to be installed separately
<aep2> any other userspace i should try that is known to work ?
<aep2> i really just picked buildroot because it had an option for a S905 device
<xdarklight> I use Arch Linux ARM on my boards because Arch Linux is what I'm used to on all of my other machines
<aep2> i didnt know they had S912 oO
<aep2> i mean, same here on desktop
<xdarklight> "ARMv8 AArch64 Multi-platform" is what I run: https://archlinuxarm.org/about/downloads
<aep2> looks like S905 only?
<xdarklight> S905 is the Hardkernel 3.14 kernel based on Amlogic's GPL kernel sources
<xdarklight> "ARMv8 AArch64 Multi-platform" is simply mainline
<aep2> aah
<aep2> how well does mainline work btw?
<xdarklight> depends on what you need :)
<xdarklight> I have a GXM box which I use as little home server (file storage, VPN, ...) and it's doing fine
<aep2> tv box. i.e. video decoding
<aep2> which sounds like a hassle to get working
<xdarklight> neither sound nor HW video decoding are supported upstream yet
<xdarklight> video decoding is work in progress though (thanks to mjourdan)
<aep2> aye
<aep2> i'll try amlogics ugly kernel then. sad
<xdarklight> and Jerome started working on an audio driver a while ago, but work on that has paused AFAIK because he was working on AXG audio (different audio hardware than GXBB/GXL/GXM)
<aep2> i can do without audio
<aep2> do happen to know any kernel sources for the S912 around? or is it always the same for all amlogic chips?
<xdarklight> do you mean mainline kernel sources or Amlogic kernel sources?
<aep2> well, i'd ideally want to try both
<aep2> mainline seems to be one-for-all right?
<xdarklight> yep, mainline is one-for-all
<xdarklight> and I believe it's the same for the Amlogic kernel sources, but there's different versions (based on 3.14, based on 4.9, ...) and I'm not sure about those
<aep2> gotcha
<aep2> i'm going to try building a mainline kernel first without buildroot
<narmstrong> Ely now live !
<xdarklight> \o/
<xdarklight> and is that Jerome as well (@ -12:30 min)?
<narmstrong> Yep
<aep2> uh interesting
<narmstrong> aep2: https://github.com/Elyotna/linux/tree/4.18/v4l2-m2m-pr for video decoder
<aep2> nice thanks
<lissyx> you colleagues from baylibre :)
ldevulder has quit [Quit: Leaving]
montjoie has joined #linux-amlogic
<aep2> so it _does_ work according to him just presenting it live ;)
<lissyx> that's what he says
<aep2> any idea where i can find an amlogic kernel for comparison?
<xdarklight> mjourdan: great talk - thank you!
<aep2> second that.
<aep2> xdarklight: with mainline defconfig ethernet doesnt even come up. i really think the dts doesnt match. https://gist.githubusercontent.com/aep/4ee8efc253cf93aefea3fde1e05ce116/raw/2a65a9c30876eac1669b113e0e03026f14ae73a8/gistfile1.txt
<xdarklight> aep2: find /lib/modules -name "*dwmac-meson8b*"
<aep2> err its modules by default? i just used the arch userspace without modules. oopsi
<xdarklight> yep, most of it is modules by default
<xdarklight> (MMC driver is built-in so we can load rootfs from it)
<aep2> yeah. no internal flash btw
<aep2> i'll try copying those modules first
<xdarklight> [ 1.470257] mmc1: new HS200 MMC card at address 0001
<xdarklight> eMMC seems to be detected though?
<aep2> huh wait, thats confusing
<xdarklight> mmc0 is SD card according to your kernel log
<aep2> aah sorry
<aep2> i was expecting mmc0 to be internal
<aep2> yup hexdump /dev/mmcblk1 works. nice!
<narmstrong> aep2: what is the Uboot prompt ? Q200 or q201 ?
<narmstrong> Depending you should use the corresponding mainline dts
<narmstrong> Q201 uses internal 10/100 ethernet, q200 the external gigabit phy
<narmstrong> Using the nexbox a1 dts is not a good idea
<chewitt> should give you a working defconfig for 4.18
<aep2> narmstrong: gxm_q201_v1#
<aep2> but theres an external chip
<aep2> chewitt: thanks!
<chewitt> ^ ignore all the patches with e* prefix .. you don't need them
<aep2> i'll just try that full elec kernel.
<aep2> oh wait, you need to apply the patches on top of mainline?
<chewitt> if you want video decoding and a drm driver
<aep2> ok cool, so 4.18 + those patches + that defconfig is basically libreelec, which works right?
<chewitt> yes .. and no
<aep2> damn :D
<chewitt> you'll get a working kernel and bits
<chewitt> but there are no mali blobs for the T820 so no GLES environment for Kodi (if that or similar is the goal)
<aep2> oh
<narmstrong> Try the q201 dts ;-)
<aep2> oh i see, the elec thing is just backporting the android code?
<chewitt> ^ Kodi Krypton
<chewitt> using 3.14 kernel and Android libmali + libhybris
<chewitt> from 'wrxtasy' via the LE forums
<aep2> errr, so there are blobs for 3.14 but not for 4.18?
<chewitt> there are no Linux blobs for any version
<aep2> right. hybris then
<chewitt> but under the older kernel it's possible to frankenstein something with libhybris and the Android blobs
<aep2> and mainline can do without all of that
<aep2> so basically the only 2 sane options are mainline and android
<chewitt> it's not possible on mainline
mjiho has quit [Quit: Connection closed for inactivity]
<chewitt> hybris needs to work with a kernel that broadly matches an equivalent 'Android' kernel version
<aep2> by mainline i mean the Elyotna tree
<aep2> which seems to be a complete reimplementation rather than the android stuff
<chewitt> it's a complete foss rewrite of the video decoder
<aep2> narmstrong: that dtb is bringing up some completely different phy thats not attached on my board
<aep2> why did they decide to add a different chip if this thing has a phy already oO
<aep2> chewitt: thanks alot for the info
<aep2> sounds like i need to android or mainline D:
<chewitt> so hybris needs Android 8 support .. which is only partially done and requires a rewrite of all the graphics stuff
<chewitt> and it's still a hack
<aep2> yeah
<narmstrong> aep2: the internal phy is not gigabit
<aep2> ah!
<chewitt> if you want Kodi .. you are stuck with 3.14 and the image in the mega share ^ I posted until some future date when a foss alternative to mali blobs is available
<chewitt> or Android
<aep2> yeah
<chewitt> and alternative is being written .. but it's early days
<aep2> xdarklight: your path worked. external phy is up now with dwmac_meson8b
<aep2> chewitt: i wonder, isnt hybris just glibc preloading?
<aep2> i mean, what if i just had bionic
<chewitt> no idea .. I do distro packaging not 'proper' coding
<aep2> i didnt know its that easy to use libmali. i was assuming its tied into the kernel somehow
<chewitt> i'm not sure it is .. always seems to be unnecessarily complicated to work with
<chewitt> too much license complexity for anyone with foss tastes
<lissyx> aep2, the guy demonstrating earlier at embedded recipes said it was mostly mainline kernel
<aep2> lissyx: yeah i'm trying the Elyotna tree now
<aep2> thats probably the thing
<chewitt> if you build off mainline stable (4.18.9) with the patchset and defconfig from my git repo applied you'll get the basics
sputnik_ has quit [Remote host closed the connection]
<chewitt> there are Armbian images that are based off of the same
<aep2> chewitt: thanks, but these will never do hw decoding right?
<aep2> since no hybris and no meson yet
<chewitt> my repo has hardware decoding to 1080p and 2.0 audio working nicely
<chewitt> (not on S912 tho)
<chewitt> multi-channel audio and 4k bits are still wip
<aep2> nice, how so? with the meson patches?
<chewitt> plain kernel will give you basic console output, ethernet and maybe wifi/bt depending on the chips and dts used
<chewitt> everything else is wip
<chewitt> so you need patches
<aep2> looks like these are the meson patches
<chewitt> two places to find them are my repo and the yocto/oe repo which normally lags a little
<chewitt> narmstrong has a repo with the DRM driver
<chewitt> mjourdan has a repo with the vdec bits
<chewitt> there is some overlap .. as some bits are already headed upstream and others and still fluid
<chewitt> the patch-set in my repo is curated and normally in a working state
<aep2> nice
<chewitt> the only challenge you'd have is that I rebase frequently so you won't be able to easily track changes
<aep2> perfect for testing current state tho :)
<chewitt> for an S912 board you need to create a working X11/swrast GL environment .. if running Kodi is the objective
<chewitt> so GUI performance will be 'okay' as there is no GL acceleration (as no mali)
<chewitt> but video should play decoded .. that bit works
<aep2> goal is chromium on fbdev actually
<aep2> or X11, if thats all that works
<aep2> not sure if chromium even has working v4l oO
<chewitt> from one of the LE contributors who also works on Armbian
<aep2> interesting, whats ubuntu bionic?
<chewitt> no idea .. I've not run any of those images
<aep2> oh its just a code name. heh. i thought its compiled against bionic libc
ldevulder has joined #linux-amlogic
<chewitt> ubuntu 18.something I guess
<aep2> i guess i'll try one of those
<aep2> they're with meson patches?
<chewitt> loosely based on my patch-set afaik
gdeverlant has joined #linux-amlogic
<gdeverlant> hi hi captains
<gdeverlant> greetings
<gdeverlant> someone'S there ?
<aep2> usually
<gdeverlant> I gotta couple questions concerning odroid c1-c2
<gdeverlant> hi aep2
<aep2> just ask ahead. someone might know
<gdeverlant> I had in the past problems running Docker with odroid c1 and the default kernel from HK
<gdeverlant> I think it was 3.14 Kernel version
<gdeverlant> I've heard that mainline now is working for C1
<gdeverlant> I just want to validate that all features required are working with C1 and mainline kernel
<gdeverlant> I need to only have ethernet+external-hd+docker opts compiled in kernel
<gdeverlant> I run my servers in headless mode
<gdeverlant> ==================================
<gdeverlant> is this a clear question ?
<aep2> have you tried? it looks good from here http://linux-meson.com/doku.php?id=hardware#meson8b_s805
<gdeverlant> really this matrix is chinese for me since I'm not hardcore
<gdeverlant> tech guy
<aep2> oh hm, are you looking for a ready made distro then?
<gdeverlant> yeah
<gdeverlant> somethin like with alpine linux
<gdeverlant> mainline kernel + docker ready to go
<gdeverlant> and the latest u-boot
<gdeverlant> I know that alpine linux is known to take no ram at all at startup
<aep2> dont know much about GNU/Linux distros but apparantly archlinuxarm has something. https://archlinuxarm.org/platforms/armv7/amlogic/odroid-c1
<xdarklight> ^ that is with Amlogic's 3.10 kernel
<aep2> ah
<gdeverlant> yeah the old kernel sucks
<gdeverlant> it is not Docker friendly
<xdarklight> there's a "ARMv7 Multi-platform" download though which ships the mainline kernel: https://archlinuxarm.org/about/downloads
<gdeverlant> I had problems with docker-machine ssh manager "docker network create --driver=overlay traefik-net
<gdeverlant> with overlay networks because old kernel was not built with all docker kernel opts
<aep2> yeah 3.10 is pretty old
<gdeverlant> the problem was with overlay networks
<gdeverlant> xdarklight
<xdarklight> if you want to use that Arch Linux ARM ARMv7 Multi-platform download you can follow the installation instructions from https://archlinuxarm.org/platforms/armv7/arm/versatile-express (installation tab, you only need the part from "Install to a SD card")
<gdeverlant> I'm not on linux
<gdeverlant> but on windows
<gdeverlant> sorry
<gdeverlant> I only use win32DiskImager
<gdeverlant> xdarklight: you sure that https://archlinuxarm.org/about/downloads offers mainline image ?
<aep2> as long as you can create ext4 partitions on windows, the rest should be easy
<aep2> err well, no you cant of course.
<gdeverlant> cause I don'T see the mainline anywhere written
<gdeverlant> I've decompressed the tar file
<gdeverlant> in which file in the folder structure of linux
<gdeverlant> is there the output file for the unam -a command?
<gdeverlant> so that i can see which version of kernel is that distro
<gdeverlant> hmm the /etc/arch-release file is 0 bytes
<gdeverlant> OK MY SECOND STREAM OF QUESTION
<xdarklight> gdeverlant: ArchLinuxARM-armv7-latest.tar.gz -> see /usr/lib/modules/
<xdarklight> contains a 4.18 kernel (mainline with Arch patches)
<gdeverlant> I 3.10.107-2-ARCH
<xdarklight> did you download the odroid one or ArchLinuxARM-armv7-latest.tar.gz ?
<gdeverlant> ArchLinuxARM-odroid-c1-latest.tar.gz
<xdarklight> ah, that comes with 3.10 from Hardkernel
<gdeverlant> yeah sadly I was happy with that kernel before but I can't docker full potential
<xdarklight> if you want an Arch Linux ARM image with mainline kernel then you need to get ArchLinuxARM-armv7-latest.tar.gz
<gdeverlant> that's why I need a light distro headless with USB+Ethernet+kernel mainline with full docker opts
<narmstrong> gdeverlant: ArchLinuxARM-armv7-latest.tar.gz
<narmstrong> =>>>>>>>>>>>>>>>>>>>>>>>> armv7-latest <<<<<<<<<<<<<<<<<<<<<<<<<=
<gdeverlant> will it work with Odroid C1 ?
<narmstrong> gdeverlant: well, since xdarklight is the main Meson8 developer and says so, I think so
<xdarklight> if it doesn't work then I probably broke something ;)
<gdeverlant> lol that's funny
<gdeverlant> so can i just flash my sdcard with Win32DiskImager with that distro
<narmstrong> gdeverlant:you will need to create a partition map, flash the hardkernel u-boot binary and untar the filesystem in your root partition, then yes
<gdeverlant> I've learned only that way sorry If I sound noobs
<aep2> assuming the win thing can keep linux file permissions while extracting. i dont think so
<gdeverlant> the Win32DiskImager accept only *.IMG files
<gdeverlant> Is that distro built with all the Docker necessary kernel options ?
<aep2> you'll need something that can create an ext partition out of a tarball
<aep2> yes, very likely its what you want
<gdeverlant> ok how do I create a ext partition out of that ?
<gdeverlant> I have ext2Volume Manager
<gdeverlant> so that I can browse inside of my SD card once it is flashed
<gdeverlant> from Windows Explorer
<aep2> i really dont think you're going to get anywhere with windows tools. they dont preserve linux permissions
<aep2> find a specialized tool or boot linux in a vm
<narmstrong> gdeverlant: you won't be able to do it from windows
<gdeverlant> i have vbox
<gdeverlant> with a linux installed
<aep2> chewitt: do you have more info for these armbian images you linked? i cant find an uimage in there
<chewitt> nope .. but it's .img so I'd write to an SD card and see what what happens when you power the box on
<gdeverlant> when I flash an IMG file odroid c1 was booting well
<aep2> chewitt: nothing :P the box doesnt boot from sd
<gdeverlant> but it was via Windows and Win32DiskImager
<gdeverlant> is it possible to transform those tar into IMG files ?
<aep2> yes, on linux
<gdeverlant> lol
<gdeverlant> so how does it work with Virtual Box ?
<gdeverlant> I create a shared folder
<gdeverlant> for my VM and the run it
<gdeverlant> and from linux which command I use to change the tar to IMG ?
<gdeverlant> am I thinking right her e?
<xdarklight> I wouldn't bother with shared folders on Virtual Box
<aep2> as was said: follow the installation instructions from https://archlinuxarm.org/platforms/armv7/arm/versatile-express
<xdarklight> just pass your card reader (which is probably connected via USB) to the VM directly and manage everything from inside the VM
<gdeverlant> ok because I use an microSD card Adapter to USB
<aep2> will work fine
<gdeverlant> how do I pass my card reader to my VM directly ?
<aep2> i'd imagine thats somewhere in the virtualbox manual
<aep2> or the first hit on google
<gdeverlant> i found this but it is not visual lol
<aep2> its called passthrough
<gdeverlant> your the champ bro
ndufresne has joined #linux-amlogic
gdeverlant has quit [Ping timeout: 250 seconds]
gdeverlant_ has joined #linux-amlogic
<gdeverlant_> sorry
<gdeverlant_> i was kicked out
<gdeverlant_> ok im running the VM with the USB sdcard adapter mapped
<gdeverlant_> how do I find the sdcard adapter
<gdeverlant_> im in linux ubuntu now
<gdeverlant_> i do df -h
<gdeverlant_> there is one dev/sda
<gdeverlant_> but nothing else
<rcasa> try lsblk
<gdeverlant_> command not found
<gdeverlant_> package util-linux
<gdeverlant_> tried apt-get install util-linux
<gdeverlant_> getting deb 404 IP NOT FOUND
<aep2> any idea where i can find the chromium branch mjourdan presented today? the one with working v4l and wayland :D
Barada has quit [Quit: Barada]
<xdarklight> gdeverlant_: apttry apt-get update first then try again
<xdarklight> s/apttry/try/
<gdeverlant_> im installing a new VM
<gdeverlant_> cause to many problem
<gdeverlant_> it doesnt detect the repos
<gdeverlant_> i dont know why
<gdeverlant_> icant do apt-get update
<gdeverlant_> boahhh its long
<gdeverlant_> this ubuntu mini
<gdeverlant_> Another questoin
<gdeverlant_> if I want to update the kernel of that Archlinux
<gdeverlant_> do I need to make those complicated compilation and update manually
<gdeverlant_> let's say there comes a new version of that distro
<xdarklight> Arch is rolling release
<xdarklight> there's no such thing as a "2018 release"
<xdarklight> just update -> you get the latest kernel, systemd, etc.
<gdeverlant_> because before I was dealing with umiddelb's personal repo
<gdeverlant_> and it was so fking complicated just to update the thing
<gdeverlant_> you know that dude ?
<xdarklight> no
<xdarklight> (at least not that I'm aware of)
<gdeverlant_> ok
ldevulder has quit [Ping timeout: 252 seconds]
<gdeverlant_> i install again on my ssd
<gdeverlant_> it was so slow
<gdeverlant_> my god almost finisehd
<gdeverlant_> it took 30 seconds
<gdeverlant_> wait still installing
<gdeverlant_> faster than before
<gdeverlant_> omg very fast this ssd
<gdeverlant_> it's new i got this one
<gdeverlant_> ok so now I saw the ubuntu installation recognized my usb sd adapter via the partition selection
<gdeverlant_> really positive
<gdeverlant_> so I will be now flashing the microsd device
<gdeverlant_> from ubuntu will flash the sdcard without problem you said?
<xdarklight> you should only follow these installation steps if you want a 3.10 kernel
<gdeverlant_> i want mainline kernel
<gdeverlant_> how do I do that ?
<gdeverlant_> I downloaded the multiplatform armv7
<xdarklight> then you should follow these steps: https://archlinuxarm.org/platforms/armv7/arm/versatile-express
<xdarklight> you only need what's below "Install to a SD card"
<gdeverlant_> ohh I see
<xdarklight> (Update Firmware and Configure UEFI are not needed)
<gdeverlant_> hmmm is it possible to put the kernel on one odroid c1 board
<gdeverlant_> and all my other boards are booting from the ethernet through the first board ?
<gdeverlant_> ok installation is finished
<gdeverlant_> im rebooting
<xdarklight> in theory: yes. but I suggest to get one board running first
<gdeverlant_> lsblk show 2 drives
<xdarklight> sda should be your harddisk and then there's probably sdb for the SD card
<gdeverlant_> so there is sda1 sdb1
ldevulder has joined #linux-amlogic
<gdeverlant_> ahh men ctrl+c ctrl+v is not working from my windows to the linux vm
<gdeverlant_> i need to type all manual
<gdeverlant_> how does it work to enable it ?
<gdeverlant_> so far so good
<gdeverlant_> it's downloading the tar from linux
<gdeverlant_> it show Ignoring malformed pax extended attru
<gdeverlant_> is it normal ?
<gdeverlant_> bsdtar : Error exit delayed from previous error
<gdeverlant_> i'm rerunning the bsdtar command one more time
<gdeverlant_> this time no error showing
<gdeverlant_> ohhh again error shown 4 times
<gdeverlant_> bsdtar -xpf ArchLinuxARM-armv7-latest.tar.gz -C root
<gdeverlant_> give as result :
<gdeverlant_> bsdtar : Ignoring malformed pax extended attribute
<gdeverlant_> bsdtar : Ignoring malformed pax extended attribute
<gdeverlant_> bsdtar : Ignoring malformed pax extended attribute
<gdeverlant_> bsdtar : Ignoring malformed pax extended attribute
<gdeverlant_> bsdtar : Error exit delayed from previous error
<gdeverlant_> Is it normal at this stage ?
<gdeverlant_> I continue with sync
<gdeverlant_> I think it would be more user friendly if the whole steps comes in a shell script
<gdeverlant_> the shell script shows listed device selection and then do all the rest automatically
<gdeverlant_> I'm typing the whole thing manually :D
<xdarklight> hmm, that doesn't look normal
<xdarklight> Arch Linux is not the kind of distribution that "has a script for everything"
<xdarklight> what distribution are you familiar with?
<gdeverlant_> i use ubuntu normally
<gdeverlant_> but archlinux is another beast
<gdeverlant_> ive done mv root/boot/* boot
<gdeverlant_> the step Edit mnt/etc/fstab and add the following line to the end:
<gdeverlant_> the path doesn't exist I can't edit anything
<xdarklight> that may be due to the bsdtar errors before
<gdeverlant_> remember I'm doing all of this in Ubuntu
<gdeverlant_> ahh crap
afaerber has quit [Quit: Leaving]
<xdarklight> I wonder if there's an ubuntu image with mainline out there that's easier to set up
<gdeverlant_> well I'm happy I found a bug for you
<gdeverlant_> I would like to use Archlinux
phh|new is now known as phh
<gdeverlant_> but how come that the bsdtar failed ?
<xdarklight> what do you get when running:
<xdarklight> $ bsdtar --version
<xdarklight> bsdtar 3.3.3 - libarchive 3.3.3 zlib/1.2.11 liblzma/5.2.4 bz2lib/1.0.6 liblz4/1.8.2 libzstd/1.3.5
<rcasa> gdeverlant_: your bsdtar errors are probably because you are not root
<gdeverlant_> is it because I'm using ubuntu
<gdeverlant_> no actually I'm sudo -s
<gdeverlant_> bastar 3.2.2 libarch 3.2.2 zlib 1.2.11 liblzma 5.2.2 bz2lib 1.0.6 libz4 1.7.1
<xdarklight> what about rcasa's hint to run it as root? the install steps state "Download and extract the root filesystem (as root, not via sudo):"
<gdeverlant_> hmmm should i restart all ?
<gdeverlant_> how do I get out of this sync mode
<aep2> what about that armbian stuff, does that work on your device maybe?
<aep2> it has instructions for windows
<chewitt> if you want a C1 image .. head to the Odroid forums
<narmstrong> bsdtar is too old on ubuntu systems
<narmstrong> arch uses a recent version of bsdtar to keep the xattrs
<gdeverlant_> ok where can i find the latest version
<gdeverlant_> so that I can retry all of this
<chewitt> if it does, install the docker addon in Kodi .. if it's there
<gdeverlant_> but this is not headless
<chewitt> our 3.10 kernel supports overlays
<gdeverlant_> libreelect is a media player
<chewitt> yup, but if you want a prebuilt image that can run docker
<gdeverlant_> I don't know libre elect
<chewitt> connect HDMI .. install what's needed, unplug HDMI
<gdeverlant_> I would try to install archlinux on VirtualBox
<gdeverlant_> and try the setup again from there
<gdeverlant_> 'I like things to be not messed up
gdeverlant_ has quit [Ping timeout: 252 seconds]
ldevulder has quit [Quit: Leaving]
gdeverlant_ has joined #linux-amlogic
<gdeverlant_> sorry guys weird
<gdeverlant_> i got disconnected
<gdeverlant_> OK I have found this
<gdeverlant_> I think I was confused
<gdeverlant_> I meant Alpine all the time
<gdeverlant_> not Archlinux
<gdeverlant_> because I wanted to run the minimal 5mb in ram distro
<gdeverlant_> and archilinux is huge
<gdeverlant_> will the generic ARM package work on odroid c1 ?
<gdeverlant_> it seems that it is using uboot latest
<gdeverlant_> if you look inside of the D:\odroid\alpine-uboot-3.8.1-armhf.tar\.\boot\dtbs\
<gdeverlant_> there are so many files
<gdeverlant_> which one is for odroid c1 ?
<gdeverlant_> I wanted Alpine instead of Archilinux sorry guys
<gdeverlant_> I'm all the time confusing between both distro
<gdeverlant_> is this distro from Alpine with odroid c1 or c2 compatible
<gdeverlant_> and I would like to know if it is using the mainline kernel
<gdeverlant_> well I'm on their channel now asking them
<gdeverlant_> I'm so sorry for my mistake
<gdeverlant_> I feel like the crocodile in Crocodile Dundee
lissyx has quit [Ping timeout: 252 seconds]
<rcasa> something I'd like to know, I struggled quite a bit to boot 4.18.8 on my Wetek Hub, it was booting with an old device tree from 4.12, but not with the most recent one
<rcasa> I managed to boot by modifying the latest device tree adding 1 MIb reserved-memory @ 0x05300000
<rcasa> looks like the firmware is loading a blob there: Load bl32 from eMMC, src: 0x0003c000, des: 0x05300000, size: 0x0002ead0
<rcasa> As others may encounter same issue, so I wonder how what's the process to have this added to linux-amlogic?
gdeverlant_ has quit [Ping timeout: 264 seconds]
gdeverlant has joined #linux-amlogic
<gdeverlant> sorry guys
<gdeverlant> I got rebooted
<xdarklight> rcasa: "most recent one" being v4.18 or newer?
<xdarklight> narmstrong added a reserved memory region at 0x05000000 in 4.18: https://github.com/torvalds/linux/commit/48e21ded0432ee1e2359d4143d7a6925cefee1b5
<xdarklight> (I'm not sure if the output from u-boot matches the physical addresses used in linux, so this may be related)
<rcasa> xdarklight: it's 4.18.8 built with yocto using meta-meson from superna9999, aka narmstrong, which includes the vdec patches
<rcasa> xdarklight: I saw that commit adding reserved memory 3 Mib at 0x05000000, the funny thing is if I remove that then it boots ok!
<xdarklight> that is weird. maybe narmstrong has an idea why
<rcasa> and that made no sense (how can removing reserve memory solve the issue?) so then I looked deeper and found the bl32 load at 0x05300000,
<xdarklight> (my GXBB board died a while ago so I can't test it myself)
<narmstrong> It’s weird because @chewitt uses the same kernel for the Hub with the same patches without any issues
<xdarklight> u-boot version maybe?
<rcasa> could be
<narmstrong> rcasa: is it the original u-boot ?
<rcasa> Yes, or one from an OTA update, let me get the date
<xdarklight> the test-case for reserved memory regions (when they are used by some firmware blob) is: boot device, fill all memory (using stress-ng or similar). if it hangs: then there may be a missing reserved memory region. if it doesn't hang then the current set of reserved memory regions is probably fine
<rcasa> narmstrong: I have "U-Boot 2015.01-g0d1a15d-dirty (Mar 21 2017 - 19:17:25)" but before that there seem to be another firmware that starts "BL2 Built : 09:01:42, Oct 11 2016. gxb g88b04d6 - haixiang.bao@droid05"
<rcasa> xdarklight: thanks for the info about stress-ng, something I should try
<gdeverlant> hey guys I'm talking with mps from alpine-linux channel
<gdeverlant> he says that he runs Alpine mainline kernel on Allwinners SOC
<gdeverlant> I want to know if someone had success with Alpine on odroid c1 ?
Darkmatter66 has joined #linux-amlogic
<xdarklight> gdeverlant: Allwinner != Amlogic, that's two different SoC manufacturers (the only thing they have in common are the ARM cores)
<xdarklight> gdeverlant: but if they have an Allwinner mainline kernel then they can probably also build one which has support for the Amlogic SoCs
<xdarklight> rcasa: I should also explain *why* filling the memory crashes the board: if there's only low memory usage in the kernel then <insert random memory region here> may never be overwritten even if not marked as reserved memory zone. however, if you fill all memory (for example with 0x00 or 0xff) then you'll overwrite the reserved memory region at some point and whatever expects <special data> to be in that memory area will crash because it
<xdarklight> was overwritten
sputnik_ has joined #linux-amlogic
<gdeverlant> yeah mpg is telling me the process is the same
<gdeverlant> it would work
<gdeverlant> the dude's name is mps
<rcasa> xdarklight: thanks for the explanation, makes sense
<gdeverlant> now the dude from alpine linux channel told me
<gdeverlant> that we can use the kernel from archlinux
<gdeverlant> with alpine
<gdeverlant> the mainline one
Elpaulo has joined #linux-amlogic
<gdeverlant> ok guys I installed Archlinux on my windows 10 via VBox
<gdeverlant> the part install to an sd card
<gdeverlant> everything works well until line 8
<gdeverlant> Edit mnt/etc/fstab and add the following line to the end:
<gdeverlant> how do I do that
<gdeverlant> with nano ?
<gdeverlant> the file is not there
<gdeverlant> so I can't edit it
<gdeverlant> my bsdtar 3.3.3 - libarchive 3.3.3 zlib/1.2.11 liblzma/5.2.4 bz2lib/1.0.6 liblz4/1.8.2 libzstd/1.3.5
<gdeverlant> This time I didn't have any error with the sync
<gdeverlant> or the bsdtar -xpf ArchLinuxARM-armv7-latest.tar.gz -C root command
<gdeverlant> like on the ubuntu distro with the old version of bsdtar
<gdeverlant> xdarklight: what do you suggest ?
<gdeverlant> by the way I'm logged in the VM as root
<gdeverlant> via putty and ssh
<gdeverlant> it seems that there is nothing at /mnt/etc
<rcasa> gdeverlant: you're right, there is a typo it should read: "Edit root/etc/fstab"
<gdeverlant> their "Edit mnt/etc/fstab" should be "Edit root/etc/fstab"
<gdeverlant> it doesnt work
<gdeverlant> there is no heartbeat on the odroid c1
<gdeverlant> rcasa: that tutorial didn't work for me
<gdeverlant> and I did all with archlinux that I have installed in VM
<gdeverlant> I'm back in Archlinux on VM
<gdeverlant> and I can see
<gdeverlant> sdb 8:16 1 29,7G 0 disk
<gdeverlant> ─sdb2 8:18 1 29,2G 0 part
<gdeverlant> ├─sdb1 8:17 1 512M 0 part
<gdeverlant> Ok notice : https://archlinuxarm.org/platforms/armv7/arm/versatile-express tutorial is not working with ARMv7 Multi-platformArchLinuxARM-armv7-latest.tar.gz
<gdeverlant> I just tested it with odroid c1 board
<gdeverlant> there is no boot.ini file in boot
<gdeverlant> but there is dtbs/ initramfs-linux.img zImage folder/files
<rcasa> gdeverlant: you are correct, sorry
Darkmatter66 has quit [Remote host closed the connection]
<gdeverlant> I lost a day
<gdeverlant> :(
<gdeverlant> :.....(
<gdeverlant> rcasa: why did you guys guided me towards that tutorial then ?
<rcasa> gdeverlant: again sorry
<gdeverlant> is there any hope to run C1 mainline kernel somehow ?
<gdeverlant> on my odroid C1
<gdeverlant> I just need headless mode+ssh+external usb HD+ethernet+ docker
<gdeverlant> rcasa: ?
<rcasa> gdeverlant: honestly I don't know
<gdeverlant> I found a kernel mainline
<gdeverlant> at the bottom
gdeverlant has quit [Ping timeout: 240 seconds]
gdeverlant_ has joined #linux-amlogic
<gdeverlant_> I'm running mainline kernel
<gdeverlant_> Linux odroidc1 4.18.1-odroidc1 #1 SMP Thu Aug 16 09:06:38 CEST 2018 armv7l armv7l armv7l GNU/Linux
<gdeverlant_> on the odroid c1
sputnik__ has joined #linux-amlogic
sputnik_ has quit [Ping timeout: 240 seconds]
sputnik_ has joined #linux-amlogic
sputnik__ has quit [Ping timeout: 252 seconds]
sputnik_ has quit [Client Quit]
rcasa has quit [Quit: Leaving]
sputnik_ has joined #linux-amlogic
<gdeverlant_> the armbian distro seems to work
<xdarklight> gdeverlant_: nice, congrats!
<gdeverlant_> ok now you guys have to do some magic
<gdeverlant_> why is it armbian working
<gdeverlant_> and not your distro ?
<xdarklight> which command did you use in u-boot to boot Arch Linux ARM?
<gdeverlant_> nothing
<gdeverlant_> I just flashed the sdcard ike you said to do
<gdeverlant_> and put the sdcard in the board turned it on
<gdeverlant_> nothing was blinking
<xdarklight> ah sorry - that's how you prepare the rootfs and the boot partition. in addition to that you need to configure u-boot and so it knows how to boot correctly
<gdeverlant_> dude I wasted one day on this crap
<gdeverlant_> :(
<gdeverlant_> now you tell me
<xdarklight> sorry :/
<gdeverlant_> xdarklight: how am I supposed to do uboot then ?
<xdarklight> gdeverlant_: http://linux-meson.com/doku.php#bit_socs_meson8b_s805_or_older - you need the kernel and the initramfs as uImage, then you can use the commands listed there (which assume that you're booting from SD card)
aep2 has quit [Ping timeout: 260 seconds]
<gdeverlant_> okthe step for flashing the sdcard
<gdeverlant_> I did
<gdeverlant_> and there is 2 partitions
<gdeverlant_> one is boot
<gdeverlant_> and the other is root
<gdeverlant_> in the boot there is 2 files and 1 folder
<gdeverlant_> dtbds
<gdeverlant_> dtbs
<gdeverlant_> dtbs/ initramfs-linux.img zImage folder/files
<gdeverlant_> what is missing now ?
<gdeverlant_> what is the next step
<xdarklight> give me a second
rcasa has joined #linux-amlogic
<xdarklight> you need uboot tools now (on arch linux there's a package called "uboot-tools")
<xdarklight> cd to the boot folder
<xdarklight> mkimage -A arm -O linux -T ramdisk -a 0x0 -e 0x0 -n initramfs-linux -d initramfs-linux.img rootfs.cpio.uboot
<xdarklight> mkimage -A arm -O linux -C none -T kernel -a 0x00208000 -e 0x00208000 -n linux -d zImage uImage
<xdarklight> that'll create the kernel uImage and initramfs-uimage for you. you'll need to run these commands after every kernel update
<gdeverlant_> wait i need to install pacman -S uboot-tools ?
<xdarklight> these commands are still on your computer
<xdarklight> so if you're running Arch Linux there: yes, run pacman -S uboot-tools
<gdeverlant_> can you tell me why it was so compilcated for me to install Archlinux on VirtualBox from the live cd ?
<gdeverlant_> is it by choice that we need to type everything manually ?
<xdarklight> in my opinion the answer is yes - Arch Linux is made for anyone who wants to install and configure a system based on personal preferences
<gdeverlant_> ok I figured that out
<xdarklight> instead of making a complicated UI to install it you're basically supposed to do everything on your own (with lots of useful info on the Arch Linux wiki though)
<gdeverlant_> can you update after step 9 with the correct steps ?
<gdeverlant_> because step 10 is not working
<gdeverlant_> or recorrect the tutorial so that it includes u-boot also
<xdarklight> actually I haven't contributed anything to Arch Linux ARM yet - these steps are for the Versatile Express boards, not for <insert any other board here>. I always use them as reference because they are perfectly fine for setting up a rootfs
<xdarklight> on most of my systems I only need a rootfs because I boot kernels via network (tftp) as this reduces the development time
<gdeverlant_> wait the tutorial is not the same
<xdarklight> (imaging: change one line in the kernel, remove SD card from <device>, insert SD card into computer, mount it, copy new kernel image over, remove Sd card from computer, insert into <device>, boot device again -> this becomes: change code, reboot device, enter command in u-boot, go)
<xdarklight> ah, there's this strange boot.ini on Odroid-C1
<gdeverlant_> woooohh this is to geek for me
<xdarklight> I never used that because my Odroid-C1 came with eMMC and u-boot is stored there
<gdeverlant_> you just lost me bro :D
<gdeverlant_> which kernel are you running on odroid cc1
<gdeverlant_> ????
<xdarklight> [ 0.000000] Linux version 4.19.0-rc5-00163-g5b9b8ee0e4df (xdarklight@blackbox) (gcc version 8.2.0 (Arch Repository)) #3087 SMP Tue Sep 25 23:42:02 CEST 2018
<gdeverlant_> what ?
<xdarklight> 4.19-rc5 + like 30 patches that haven't made it into mainline yet
<gdeverlant_> can't you make a IMG file from yours
<gdeverlant_> so that I can just flash a working thing
<gdeverlant_> this is bcoming too complicated
<xdarklight> I just realized that my SD card setup on Odroid-C1 is incomplete:
<gdeverlant_> blackbox is not odroid c1
<xdarklight> blackbox is the machine I'm using to compile the kernel
<gdeverlant_> it would be really amazing
<gdeverlant_> to have an IMG file
<gdeverlant_> that I can just flash and install
<gdeverlant_> bro this is so complicated
<gdeverlant_> I'm not a hacker
<gdeverlant_> lol
<xdarklight> I just realized that my SD card setup on Odroid-C1 is incomplete: I don't have a boot.ini there (because my Odroid-C1 also has eMMC flash, and u-boot and boot.ini are stored there)
<gdeverlant_> I don't eMMC
<xdarklight> even if I make a copy of my SD card and upload it somewhere I believe it won't work for you
<gdeverlant_> I microSD card
<gdeverlant_> It is too expensive emmc
<xdarklight> I would need some time to make an "SD-card only" solution that works - but I don't have much time at the moment
<xdarklight> maybe someone in the hardkernel forums has an image ready which he/she can share?
<gdeverlant_> well i hope someone here is from the forum
<gdeverlant_> because I don't find forum very organized
<gdeverlant_> it's messy out there
rcasa has quit [Remote host closed the connection]
sputnik_ has quit [Remote host closed the connection]
<gdeverlant_> xdarklight
<gdeverlant_> just let me know when you think having the time
<gdeverlant_> to make an img
<gdeverlant_> i'll go to sleep
<gdeverlant_> im dead
sputnik_ has joined #linux-amlogic
gdeverlant_ has quit [Ping timeout: 260 seconds]
aep2 has joined #linux-amlogic