[SOLVED] XFS on an ODroid-C2

This is for ARMv8 based devices

Re: XFS on an ODroid-C2

Postby WorMzy » Mon Apr 08, 2019 10:07 pm

Thanks, summers.

I haven't got ahold of an SD card yet (hopefully arriving on Wednesday) so I'm trying to get to the uboot console to take a look at the fdt -- to see if I can identify the path my emmc appears under. Unfortunately I'm not even able to get into the console. Some sources suggest pressing Escape rapidly during the reboot sequence will interrupt it, but either that isn't accurate for the version of uboot I'm using, or USB isn't initialised early enough for my keypresses to register. I could just try your configuration, but unfortunately my laptop (which is the only SD card reader I have) is refusing to boot right now, so I can't revert my changes if I break it.

Bah, I'll post an update when things are a little less grim.
WorMzy
 
Posts: 9
Joined: Mon Apr 01, 2019 12:30 pm

Re: XFS on an ODroid-C2

Postby summers » Tue Apr 09, 2019 4:43 pm

:) I was lucky in that one of the sD card I ordered a few years ago, came with a usb adaptor - and I've used it ever since. Before then it was microSD to Sd to usb adapadtor.

Alas its rare I have to get through to the command line on uboot - alas I'm getting too good at writing scripts, or rather checking very carefully whatever changes I make, before reboot. So most times I just change the script, reboot - and all works; its only when something goes wrong I have to dig out the the UART cable and interrupt uboot.

Are you managing to get text scrolling pass rapidly on the UART connection? That at least means you are close to talking to the device. If you get access to uboot, yes you can make changes to the fdt - but may well need someone with a working device to work out what you need to look at. Device trees are a bit painfull, but actually a revolution in the arm world.
summers
 
Posts: 995
Joined: Sat Sep 06, 2014 12:56 pm

Re: XFS on an ODroid-C2

Postby WorMzy » Wed Apr 10, 2019 10:22 pm

Hey, good shout on the SD card. I rsynced my install over to one today, booted into it, switched to linux-aarch64 and uboot-odroid-c2-mainline as before, rebooted, and everything Just Worked™, including XFS -- I guess the odroid-c2 kernel is too old after all.

I don't have a UART, but that's something I'll look into picking up at some point. I guess I can now play around with the emmc clock speeds with impunity now, although it'll have to be trial and error rather than getting into uboot and examining the fdt. The eMMC doesn't show up in the booted mainline system, so I'm pretty sure you're spot on about the clockspeed being the issue there too. I'm disappointed that eMMCs have such flaky support right now (and that I spent £35 on one I can't use!), but it is what it is I suppose.

Marking as solved -- XFS support is there, it's just limited in the stock kernel, and booting the mainline kernel requires some sacrifices.
WorMzy
 
Posts: 9
Joined: Mon Apr 01, 2019 12:30 pm

Re: [SOLVED] XFS on an ODroid-C2

Postby summers » Thu Apr 11, 2019 8:13 pm

:) Am glad it worked.

To work out the problem with the eMMC, try mounting it when you booted from the sd card. As booted from the sd card, if faults it won't take down the OS, so you can look at what errors you get "dmesg". The errors will give you some idea of what to fix.

UART cables, this is one of the best if you can get for a good price: https://www.ftdichip.com/Products/Cables/RPi.htm. I bought one for about £10 looks like £12 now. 3.3V is used on most of devices.
summers
 
Posts: 995
Joined: Sat Sep 06, 2014 12:56 pm

Re: [SOLVED] XFS on an ODroid-C2

Postby WorMzy » Fri Apr 12, 2019 10:59 am

Looking in the journal, it fails to initialise the card:

$this->bbcode_second_pass_code('', 'Apr 01 19:12:52 squeak kernel: meson-gx-mmc d0074000.mmc: no support for card's volts
Apr 01 19:12:52 squeak kernel: mmc0: error -22 whilst initialising MMC card')

(Ignore the datestamps, I'm not entirely sure where that comes from -- there's no RTC, fake-hwclock hasn't run yet, and systemd-timesyncd fixes the time shortly after)

Looking at the first line, I guess the fdt path you use (/soc/apb@d0000000/mmc@74000) would also work on my system. I'm going to play around with it this weekend, and hopefully get the eMMC working as bcache for the RAID.

Thanks for the link!
WorMzy
 
Posts: 9
Joined: Mon Apr 01, 2019 12:30 pm

Re: [SOLVED] XFS on an ODroid-C2

Postby summers » Fri Apr 12, 2019 11:36 am

Sounds like the problem on this thread : https://archlinuxarm.org/forum/viewtopic.php?f=23&t=13495

I don't see the same problem on my set up.

Anyway as it seems to be popping up with many eMMC cards - hopefully the community will rapidly find a solution. Don't know if it has yet appeared on the c2 forum ...
summers
 
Posts: 995
Joined: Sat Sep 06, 2014 12:56 pm

Previous

Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 8 guests