Moderator Control Panel ]

How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.13

Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Postby NeuerUser » Thu Mar 27, 2014 9:04 pm

O.K. slowly I am getting forward. Now I have u-boot-2014 running with 2G RAM and networking :-)

I have only managed to boot the normal 3.0.35 kernel. Guess, my dtb files are somehow borked. If I try to start a newer kernel, it always stops directly after "Starting the kernel...".

Btw. how to I flash the new u-boot so that it loads automatically without every time using imx-loader-usb?
NeuerUser
 
Posts: 21
Joined: Thu Mar 20, 2014 5:07 pm

Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Postby NeuerUser » Thu Mar 27, 2014 9:12 pm

Btw. Just found a nasty bug in the u-boot: When you enter "printenv netboot" (or any other very long variable), the CPU is resetted.
NeuerUser
 
Posts: 21
Joined: Thu Mar 20, 2014 5:07 pm

Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Postby NeuerUser » Thu Mar 27, 2014 10:19 pm

Hmm, one step further, and one step back:

I flashed the u-boot to the emmc. This works nicely. However, u-boot cannot save (probably not load either) the environment variables.

Code: Select All Code
=> saveenv
Saving Environment to MMC...
Card did not respond to voltage select!
MMC init failed

The mmc dev seems to be hard coded, I guess. The correct mmc dev is 2 (for the internal mmc), but it probably wants to use some other dev. :-(
NeuerUser
 
Posts: 21
Joined: Thu Mar 20, 2014 5:07 pm

Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Postby NeuerUser » Thu Mar 27, 2014 10:27 pm

O.K. found the config here:
include/configs/mx6sabresd.h

change
Code: Select All Code
#define CONFIG_SYS_MMC_ENV_DEV          1       /* SDHC3 */

to
Code: Select All Code
#define CONFIG_SYS_MMC_ENV_DEV          2       /* SDHC3 */


then saving to MMC works :-)
NeuerUser
 
Posts: 21
Joined: Thu Mar 20, 2014 5:07 pm

Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Postby NeuerUser » Thu Mar 27, 2014 11:30 pm

Yeah, looking very good so far. Managed to save u-boot-2014 to emmc and can tftpboot kernel and then nfs boot rootfs. Great!

So, now I'm stuck at the same problem mentioned before that teh 3.10 kernel oopses about 30 sec after boot.
Code: Select All Code
INFO: rcu_sched self-detected stall on CPU { 1}  (t=2100 jiffies g=4294967289 c=4294967288 q=274)
CPU: 1 PID: 25 Comm: kworker/1:1 Not tainted 3.10.173.10.17_beta+yocto+g9260843 #1
Workqueue: events rtc_timer_do_work
Backtrace:
[<80011d7c>] (dump_backtrace+0x0/0x110) from [<80011f94>] (show_stack+0x18/0x1c)
 r6:00ebc000 r5:807db780 r4:807c78a8 r3:807c73b0
...

Not sure if this is kernel or dtb related.
At least I can now easily test different kernels and dtbs easily.
NeuerUser
 
Posts: 21
Joined: Thu Mar 20, 2014 5:07 pm

Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Postby updatelee » Thu Mar 27, 2014 11:55 pm

Not sure, never tried. I load mine every time with imx_usb just cause I like to play around alot so its easier if its not writen to flash.

You should be able to use the TBS mfg restore util I would think.

UDL
TBS6925/5980, Prof 7301/7500/8000, Genpix Skywalker-1, Skystar 2 Express HD
Hauppauge 950Q, Kworld 330U/435v3/445v3
Dreambox 800

I use Linux and support open source projects.
User avatar
updatelee
 
Posts: 374
Joined: Wed Jul 25, 2012 11:48 am
Location: CFB Edmonton

Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Postby NeuerUser » Fri Mar 28, 2014 12:05 am

updatelee Wrote:Not sure, never tried. I load mine every time with imx_usb just cause I like to play around alot so its easier if its not writen to flash.

You should be able to use the TBS mfg restore util I would think.

UDL

I looked through the mfg restore scripts (it uses Linux) and it was pretty easy. It is written to /dev/mmcblk0 exactly the same way as to sdcard. One can do that when the Matrix is booted to any Linux distro.
Code: Select All Code
echo 0 > /sys/block/mmcblk0boot0/force_ro
dd if=u-boot-2014-matrix.imx of=/dev/mmcblk0boot0 bs=512 seek=2
sync
echo 1 > /sys/block/mmcblk0boot0/force_ro
echo 8 > /sys/devices/platform/sdhci-esdhc-imx.3/mmc_host/mmc0/mmc0:0001/boot_config


I hope that this u-boot is stable enough to not change it anymore. I rather have kernel and rootfs easily modified, and that is best done via tftpboot and nfs.
NeuerUser
 
Posts: 21
Joined: Thu Mar 20, 2014 5:07 pm

Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Postby l3iggs » Wed May 21, 2014 5:39 am

NeuerUser Wrote:O.K. slowly I am getting forward. Now I have u-boot-2014 running with 2G RAM and networking :-)

I have only managed to boot the normal 3.0.35 kernel. Guess, my dtb files are somehow borked. If I try to start a newer kernel, it always stops directly after "Starting the kernel...".

Btw. how to I flash the new u-boot so that it loads automatically without every time using imx-loader-usb?


can you post this u-boot.bin?
Thanks.
l3iggs
 
Posts: 11
Joined: Sat Apr 05, 2014 9:09 am

Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Postby l3iggs » Thu May 22, 2014 1:33 am

Can anyone post a flashable u-boot with functional networking?

Edit: I've done it myself. I've posted it here for others to use if they'd like:
https://github.com/l3iggs/tbs2910-from- ... ses/latest

Instructions on flashing from Linux are also there.
l3iggs
 
Posts: 11
Joined: Sat Apr 05, 2014 9:09 am

Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Postby antonl1911 » Thu Jun 26, 2014 10:27 pm

Is it absolutely necessary to use new uboot to load mainline kernel embedded in fdt blob from SD card ( stock uboot is missing FDT support? )?
antonl1911
 
Posts: 27
Joined: Thu May 15, 2014 5:54 pm

Previous

Return to General discussion

Who is online

Users browsing this forum: No registered users and 16 guests