msperl
Posts: 344
Joined: Thu Sep 20, 2012 3:40 pm

RPI and WIFI SD to deploy new bootcode.bin,...

Sat Mar 22, 2014 9:15 am

Hi!

I thought of start investigating a "freeware" bootloader/FreeRTOS setup for the RPI (as a I doubt that linux will be possible due to the limited MMU capabilities of VC4 itself).
Actually my first Idea would be trying to port uboot...

To avoid having to manually unplug/replug the SD Card every time I update the Firmware images I thought of using one of those (hackable) Transcend WIFI-SD Cards (e.g.TS16GWSDHC10) to update the files in /boot on the fly and then trigger a reboot of the RPI.

Has anyone been successfully doing that?

Thanks, Martin

User avatar
duberry
Posts: 379
Joined: Mon Jan 28, 2013 10:44 pm
Location: standing on a planet that's evolving. And revolving at nine hundred miles an hour

Re: RPI and WIFI SD to deploy new bootcode.bin,...

Sat Mar 22, 2014 11:41 am

msperl wrote: Has anyone been successfully doing that?
No! , but apparently* with modle A its possible to boot over usb link



*i have not 'successfully doing that'.
lend me your arms, fast as thunderbolts, for a pillow on my journey.
If the environment was a bank, would it be too big to fail
so long; and thanks for all the pi

hldswrth
Posts: 108
Joined: Mon Sep 10, 2012 4:14 pm

Re: RPI and WIFI SD to deploy new bootcode.bin,...

Mon Mar 24, 2014 10:33 am

An alternative, cheap and simple option is to use the Pi's built-in UART, and a 3.3v USB to Serial converter to establish a serial link to a PC and then have the boot loader download the kernel image via the serial link.

With a wifi-enabled SD card I assume you can just copy the files to the card over the wifi link and reset the Pi to reboot with a new image.

msperl
Posts: 344
Joined: Thu Sep 20, 2012 3:40 pm

Re: RPI and WIFI SD to deploy new bootcode.bin,...

Tue Mar 25, 2014 6:41 am

hldswrth wrote:An alternative, cheap and simple option is to use the Pi's built-in UART, and a 3.3v USB to Serial converter to establish a serial link to a PC and then have the boot loader download the kernel image via the serial link.
True: uboot can do that for the arm portion, but I am talking about videocore bootloader /boot/bootcode.bin and /boot/start.elf.

If I want to replace those the arm-uboot loader will not help me downloading them via serial line, as those files are loaded/executed before arm gets started and uboot gets loaded...

That is: unless there is some serial loader inside the pre-bootloader, which loads /boot/bootcode.bin and which is stored on the bcm2835 chip itself

tufty
Posts: 1456
Joined: Sun Sep 11, 2011 2:32 pm

Re: RPI and WIFI SD to deploy new bootcode.bin,...

Tue Mar 25, 2014 9:50 am

I would imagine it would be possible to write a pre-bootloader that runs as bootcode.bin, relocates itself out of the way, then listens on a UART for a new bootcode.bin, and transfers control to it. Much of what's needed to do this is already on Herman's github.

Going the whole hog and writing a new bootcode to the SD card is going to be a far more intensive task.

On the other hand, we already have JTAG pins for the GPU, so you might well be able to use those instead.

Return to “Bare metal, Assembly language”