I read online that we can run U-boot scripts. I just want some clarification.

If I write a U-boot script on my embedded system, which basically mounts a USB flash drive that's plugged in, send a file to Host via TFTP, then proceeds to mount the Linux OS. Is this possible? (Note that I want to do something out of the ordinary. My Linux OS lives on an SD card, and U-Boot needs load that, but what I'm asking is the ability to transfer a file from embedded system with my attached USB flash drive to my PC, then proceed to load my linux os.) The reason for doing this is that the file is time critical for my PC to retrieve within seconds of my embedded system powering on. I know it's much better to let my OS load, and then allow it to send the file, but I do not want to go that route. I specially want to send the file in 2 seconds rather than waiting 10 seconds for my Linux to boot.

Also, is it possible to have the script run in parallel with the linux boot. For example If I have 2GB of files to transfer from USB Flashdrive, and so that will continue to transfer, but in parallel the linux OS boots from U-Boot?

1 Answer 1


What does the uboot documentation say?

I didn't work with uboot scripts yet, but I did build my own uboot with my own additions and of course you can build it on top of all uboot drivers and do anything you want to.

Except you can't continue transferring while booting Linux. You can transfer while loading the kernel image from SD card (which may take a while), but once the kernel takes over, uboot is finished (if you are not doing wild things like hiding one core from Linux and continue to run your bare metal stuff on that core)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .