Jump to content

Recommended Posts

Posted

Hi,

A few months back I installed version 5.10 on a cubietruck.  After setting everything up I configure the system to boot from SD and have the system on SATA.  Everything was fine until yesterday.  It looks like my SD card is corrupted.  I created a new SD card using version 5.14 and booted, after booting I mounted the SATA drive and everything seems fine on the SATA.  The question is how can I boot again from SD and use the existing system on my SATA?  I don’t want to have to reinstall/configure everything.

 

Thank you

 

Mike

Posted

At least you have to change root in bootargs from mmcblk0p1 to sda1 in /boot/boot.cmd and do an "mkimage" as specified at end of file.

 

The kernel is on SD card and will be newer, so you will need to update modules and headers, by upgrading with apt if you can boot on sata or by copying /lib/modules/<kernel version> and /usr/src/linux-headers-<kernel version>

Posted

Thank you for the quick response arox.

 

Would it be easier if I just made my SD with the same version I originally used, I found the version I used originally. 

 

 

you will need to update modules and headers, by upgrading with apt if you can boot on sata

 

How can I boot from SATA directly rather than relying on the SD?

Posted

Cubietruck should be possible to boot SATA or USB directly from u-boot while you still need to load an u-boot and a boot script from SD card. I am not using this method so I don't know if it's enabled in u-boot configuration.

 

If you use our images, than upgrades usually don't need any manual fixing. (SD card /boot folder is mounted to /boot so zImage is updated properly)

Posted

So are you saying if I keep 5.14 on my SD card, change the bootargs to point to sda1 and reboot, then the version I have on my SATA (5.10) should update without any manual copying of files?

 

Thank you,

 

Mike

Posted

If booting with mixed new kernel and old stuff on sata drive do not work there is another option. Boot system just only from SD and upgrade system on SATA drive in chroot enviroment.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines