Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes between Version 7 and Version 8 of RaspberryPi


Ignore:
Timestamp:
2019-07-02T20:48:34Z (5 months ago)
Author:
Jakub Jermář
Comment:

Add instructions for netbooting HelenOS using U-boot

Legend:

Unmodified
Added
Removed
Modified
  • RaspberryPi

    v7 v8  
    1818== Booting ==
    1919
    20 Build HelenOS for Raspberry Pi, insert the microSD card you use to boot Raspberry Pi to your computer and copy `boot/image.bin` to `kernel.bin` on its boot partition:
     20There are two ways to boot HelenOS on Raspberry Pi: directly from the SD card boot partition or using U-boot.
     21
     22=== Direct boot from SD card boot partition ===
     23
     24Build HelenOS for Raspberry Pi, insert the microSD card you use to boot Raspberry Pi to your computer and copy `boot/image.bin` to `kernel.img` on its boot partition:
    2125
    2226{{{
     
    2832$ sudo cp boot/image.bin /run/media/$USER/boot/kernel.img
    2933}}}
     34
     35=== Network boot with U-boot ===
     36
     37Build HelenOS for Raspberry Pi and copy the resulting `uImage.bin` to your tftpboot directory. Assuming the `kernel.img` on the SD card is a U-boot binary built for the rpi_config, power on your Raspberry Pi and enter the U-boot boot prompt. Then enter the following command:
     38
     39{{{
     40U-Boot> dhcp 192.168.0.103:uImage.bin
     41}}}
     42
     43You should see the image being downloaded:
     44
     45{{{
     46Waiting for Ethernet connection... done.
     47BOOTP broadcast 1
     48BOOTP broadcast 2
     49BOOTP broadcast 3
     50DHCP client bound to address 192.168.0.101 (1009 ms)
     51Using smsc95xx_eth device
     52TFTP from server 192.168.0.103; our IP address is 192.168.0.101
     53Filename 'uImage.bin'.
     54Load address: 0x200000
     55Loading: ##################################################  1.4 MiB
     56         1.4 MiB/s
     57done
     58Bytes transferred = 1428856 (15cd78 hex)
     59}}}
     60
     61Finally, use the `bootm` command to boot the downloaded image:
     62
     63{{{
     64U-Boot> bootm
     65## Booting kernel from Legacy Image at 00200000 ...
     66   Image Name:   HelenOS-0.9.1
     67   Image Type:   ARM Linux Kernel Image (uncompressed)
     68   Data Size:    1428792 Bytes = 1.4 MiB
     69   Load Address: 00008000
     70   Entry Point:  00008000
     71   Verifying Checksum ... OK
     72   Loading Kernel Image ... OK
     73
     74Starting kernel ...
     75}}}