Hummingboard II, first pacman -Syu in a year

This forum is for supported devices using an ARMv7 Freescale SoC.

Hummingboard II, first pacman -Syu in a year

Postby RobMeades » Mon Mar 28, 2016 2:51 pm

Hi there. I'm using Arch on a Hummingboard II project which I'm just getting back to after ~1 year off. I've just taken a deep breath and done pacman -Syu. I have an SD card for boot which switches to SSD (on /dev/sda) for normal operation so, after a successful pacman -Syu, I copied (with -r) the contents of /dev/sda1/boot to the /boot directory on the SD card but that did not boot.

I noticed that the dtb files are now in a subdirectory of their own, dtbs, so I copied them all into /boot and that appears to have worked. It doesn't feel correct though!

Can anyone advise one what I should have done/should do?

FYI, uEnv.txt contains:

$this->bbcode_second_pass_code('', 'mmcargs=setenv bootargs root=/dev/sda1 rootwait rw console=tty1 console=ttymxc0,115200 consoleblank=0 video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24,bpp=16 dmfc=3 ahci_imx.hotplug=1 pci=nomsi loop.max_part=15
')
Rob
RobMeades
 
Posts: 19
Joined: Sat May 17, 2014 3:35 pm

Re: Hummingboard II, first pacman -Syu in a year

Postby moonman » Mon Mar 28, 2016 10:07 pm

Which uboot are you using? The one in our repos has been patched to take into account dtbs dir. You can also mount your SD card under boot so the kernel will go to the SD card automatically
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Hummingboard II, first pacman -Syu in a year

Postby RobMeades » Tue Mar 29, 2016 12:10 am

Hi moonman.

I think I'm using this uboot:

http://wiki.solid-run.com/doku.php?id=products:imx6:software:development:u-boot

You're right that I should mount my SD card under boot, never quite got around to it.

Rob
RobMeades
 
Posts: 19
Joined: Sat May 17, 2014 3:35 pm

Re: Hummingboard II, first pacman -Syu in a year

Postby moonman » Tue Mar 29, 2016 12:18 am

Install "uboot-cubox-i" with pacman. It scans for dtbs in both <root> and <root>/dtbs
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Hummingboard II, first pacman -Syu in a year

Postby RobMeades » Tue Mar 29, 2016 7:26 pm

Will do, thanks.

Rob
RobMeades
 
Posts: 19
Joined: Sat May 17, 2014 3:35 pm

Re: Hummingboard II, first pacman -Syu in a year

Postby RobMeades » Sat May 14, 2016 4:30 pm

Coming back to tidy this up now, am I correct in thinking that in order to mount my SD card as the boot directory and avoid this misalignment happening again, I simply edit /etc/fstab to add the following line:

$this->bbcode_second_pass_code('', '#device mountpoint fstype options dump fsck
/dev/mmcblk0p1 /boot ext4 defaults 0 1')
Rob
RobMeades
 
Posts: 19
Joined: Sat May 17, 2014 3:35 pm

Re: Hummingboard II, first pacman -Syu in a year

Postby RobMeades » Thu May 19, 2016 10:09 pm

FYI, a correct ftab entry would seem to be:

$this->bbcode_second_pass_code('', '
#<file system> <dir> <type> <options> <dump> <pass>
/dev/mmcblk0p1 /sd-card ext4 defaults 0 0
/sd-card/boot /boot none bind 0 0')
Rob
RobMeades
 
Posts: 19
Joined: Sat May 17, 2014 3:35 pm


Return to Freescale

Who is online

Users browsing this forum: No registered users and 5 guests