...
Date | Owner | Revision | Notes | ||||||
---|---|---|---|---|---|---|---|---|---|
Yazan Shhady | 1.0 | Initial release | |||||||
Yazan Shhady | 1.1 | Updated SW Versions | |||||||
May 15, 2023 | Yazan Shhady | 1.2 | Updated SD SW Versions | ||||||
Table of Contents |
|
...
eMMC and SD connect to the same SDIO signals via MUX so we can’t have access to the SD & eMMC at the same time, select eMMC/SD by setting switch S3{6} → off : eMMC , on : SD
Booting from SD card
...
The following shows how to set the switches on the boot source selector:
...
Info |
---|
Please Note: The black rectangle represents the switch position. |
Once you set the switches, you can apply the following for booting from SD card:
Downloading the Debian image
Download the Debian image by running the following command on your Linux/Windows PC:Code Block wget https://solid-run-images.sos-de-fra-1.exo.io/RZG2LC/Debian/sr-rzg2lc-debian-bullseye-ea244d8caaf84b-cli-rzg2lc-hummingboard.img.xz
For more Debian releases, please visit Debian Releases for RZ/G2LC.
Writing the image to the SD card and USB Disk
Use the following commands for writing the image to an SD card:Code Block xz -dc sr-rzg2lc-debian-bullseye-ea244d88471270-cli-rzg2lc-hummingboard.img.xz | dd of=/dev/sdX bs=4k conv=fdatasync
For more information, please visit Flashing an SD Card .
Note:Plug a micro SD into your Linux PC, the following assumes that the USB-Disk / Micro-SD is added as /dev/sdX and all it’s partitions are unmounted.
SD card insertion
Please Insert the SD card into your device.USB Disk insertion
Plug your USB device into the lower USB portPower connection
Connect your power adaptor to the DC jack, and then connect the adaptor to mains supply.Power On
Hold on the On/Off Power button - SW1 (as shown in the figure below)Set U-Boot configuration
Press any key to stop the device in U-Boot when you see the U_Boot counter and run the commands belowCode Block setenv bootargs 'root=/dev/sda1 rootwait'; mmc dev 0; ext4load mmc 0:1 0x48080000 boot/Image; ext4load mmc 0:1 0x48000000 boot/rzg2lc-hummingboard.dtb;
Enable eMMC
set the dip switch S3 to enable the eMMC -> S3 = {1-5:N/C, 6:off}
Note: eMMC and SD connect to the same SDIO signals via MUX so we can’t have access to the SD & eMMC at the same time…Boot and loading Debian from USB Disk
run the U-Boot command below to bootCode Block booti 0x48080000 - 0x48000000
Note: The system should turn on by default when the power is connected (without pressing the button).
Serial Connection
Please insert the micro USB into your device, then you can refer to Serial Connection for installing necessary serial connection software in Linux/Windows.
Once you installed the necessary serial connection software, you should be able to see the following:
In order to be able to log in , please insert “debian” as a username and password as follows:
11. Install Debian on eMMC
run the commands below to install the Debina & flash the eMMC7. Execute startup script
Code Block |
---|
wgetsudo -O /tmp/debian.img.xz https://solid-run-images.sos-de-fra-1.exo.io/RZG2LC/Debian/sr-rzg2lc-debian-bullseye-ea244d8-cli-rzg2lc-hummingboard.img.xz unxz /tmp/debian.img.xz | sudo dd of=/dev/mmcblk0 conv=sync |
12. Booting from eMMC
configure the boot media to boot from eMMC refering to HummingBoard RZ/G2LC Boot Select and then do reset.
It should load full Debian image from eMMC (SD & USB can be removed)
13. Set eMMC U-Boot Environemnts
Stop it in U-Boot and run the commands below to
Code Block |
---|
setenv bootcmd " setenv bootargs 'root=/dev/mmcblk0p1 rootwait'; mmc dev 0; ext4load mmc 0:1 0x48080000 boot/Image; ext4load mmc 0:1 0x48000000 boot/rzg2lc-hummingboard.dtb; booti 0x48080000 - 0x48000000"; saveenv ~/init_rzg2lc.sh |
Note: Required to enable the Ethernet functionality with the current SW version
8. Final stages
The following stages need to be done in order to finalise the imaging:
Run
fdisk /dev/mmcblk0
if using SD or eMMC.Recreate the first partition by deleting it and then creating a new partition that starts at block 16384 and extends to the end of the drive (or less depending on your needs).
Write the new partition, when prompt about ‘Do you want to remove the signature?’ then answer with Yes.
Run
resize2fs /dev/mmcblk0p1
if using SD Card or eMMC.In this stage the root partition should be big enough to start populating it; but first update the RTC clock.
Connect the RJ45 to your network with internet access (and DHCP server); and then run
dhclient
.Update the RTC clock by running
ntpdate pool.ntp.org
and thenhwclock -w
.Run apt-update commands below and then populate the root filesystem as you wish.
Code Block apt-get update && apt-get upgrade -y
Please see below an example of resizing the filesystem :
...
More Features
Internet
Connect an Ethernet cable to your HummingBoard Pulse (for internet access during boot-up).
Models HummingBoard with WiFi, can be connected via WiFi or wired Ethernet.
...