...
Code Block |
---|
load mmc 0:1 0xa4000000 ubuntu-core.img mmc dev 0 mmc write 0xa4000000 0 0xd2000 |
...
Note |
---|
Please Note: The above commands should be run only once (in the fist boot), or when a new image is to be used. |
...
The following stages need to be done in order to finalise the imaging:
Run
fdisk /dev/mmcblk0mmcblk1
if using SD, or run if usingfdisk /dev/mmcblk1mmcblk10
eMMC.Recreate the first partition by deleting it and then creating a new partition that starts at block 131072 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 No.
Run
resize2fs /dev/mmcblk0p1mmcblk1p1
if using SD Card, or Runresize2fs /dev/mmcblk1p1mmcblk0p1
if using 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.
...