TS-4900 Ubuntu Getting started: Difference between revisions

From embeddedTS Manuals
(Created page with "The latest release is available here: * [ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/ubuntu/ubuntu-armhf-16.04-latest.tar.bz2 ubuntu-armhf...")
 
m (Links auto-updated for 2022 re-branding ( https://files.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/ubuntu/ubuntu-armhf-18.04-latest.tar.bz2 →‎ https://files.embeddedTS.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/ubuntu/ubuntu-armhf-18.04-latest.tar.bz2))
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The latest release is available here:
The latest release is available here:
* [ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/ubuntu/ubuntu-armhf-16.04-latest.tar.bz2 ubuntu-armhf-16.04-latest.tar.bz2]
* [https://files.embeddedTS.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/ubuntu/ubuntu-armhf-18.04-latest.tar.bz2 ubuntu-armhf-18.04-latest.tar.bz2]
The login is either "root" with no password, or username "ubuntu" with the password "ubuntu".  The ubuntu user is allowed to run sudo.
The login is either "root" with no password, or username "ubuntu" with the password "ubuntu".  The ubuntu user is allowed to run sudo.


 
To write this to an SD card, first partition the SD card to have one large ext3, or ext4 partition.  See the guide [[#Partition i.MX6 SD cards|here]] for more information.  Once it is formatted, extract this tar with:
To write this to an SD card, first partition the SD card to have one large ext4 partition.  See the guide [[#Partition i.MX6 SD cards|here]] for more information.  Once it is formatted, extract this tar with:
<source lang=bash>
<source lang=bash>
# Assuming your SD card is /dev/sdc with one partition
# Assuming your SD card is /dev/sdc with one partition
mkfs.ext4 /dev/sdc1
mkfs.ext3 /dev/sdc1
mkdir /mnt/sd/
mkdir /mnt/sd/
sudo mount /dev/sdc1 /mnt/sd/
sudo mount /dev/sdc1 /mnt/sd/
sudo tar xjf ubuntu-armhf-16.04-latest.tar.bz2 -C /mnt/sd
sudo tar --numeric-owner -xjf ubuntu-armhf-18.04-latest.tar.bz2 -C /mnt/sd
sudo umount /mnt/sd
sudo umount /mnt/sd
sync
sync
Line 17: Line 16:
To rewrite the eMMC, boot to the SD card.  You cannot rewrite the emmc while it is mounted elsewhere, or used to currently boot the system.  Once booted to the SD, run:
To rewrite the eMMC, boot to the SD card.  You cannot rewrite the emmc while it is mounted elsewhere, or used to currently boot the system.  Once booted to the SD, run:
<source lang=bash>
<source lang=bash>
mkfs.ext4 /dev/mmcblk2p1
mkfs.ext3 /dev/mmcblk2p1
mkdir /mnt/emmc
mkdir /mnt/emmc
mount /dev/mmcblk2p1 /mnt/emmc
mount /dev/mmcblk2p1 /mnt/emmc
wget -qO- ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/ubuntu/ubuntu-armhf-16.04-latest.tar.bz2 | tar xj -C /mnt/emmc/
wget -qO- https://files.embeddedTS.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/ubuntu/ubuntu-armhf-18.04-latest.tar.bz2 | tar --numeric-owner -xj -C /mnt/emmc/
umount /mnt/emmc
umount /mnt/emmc
sync
sync
</source>
</source>
{{:U-Boot ext4 warning}}

Latest revision as of 16:59, 17 January 2022

The latest release is available here:

The login is either "root" with no password, or username "ubuntu" with the password "ubuntu". The ubuntu user is allowed to run sudo.

To write this to an SD card, first partition the SD card to have one large ext3, or ext4 partition. See the guide here for more information. Once it is formatted, extract this tar with:

# Assuming your SD card is /dev/sdc with one partition
mkfs.ext3 /dev/sdc1
mkdir /mnt/sd/
sudo mount /dev/sdc1 /mnt/sd/
sudo tar --numeric-owner -xjf ubuntu-armhf-18.04-latest.tar.bz2 -C /mnt/sd
sudo umount /mnt/sd
sync

To rewrite the eMMC, boot to the SD card. You cannot rewrite the emmc while it is mounted elsewhere, or used to currently boot the system. Once booted to the SD, run:

mkfs.ext3 /dev/mmcblk2p1
mkdir /mnt/emmc
mount /dev/mmcblk2p1 /mnt/emmc
wget -qO- https://files.embeddedTS.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/ubuntu/ubuntu-armhf-18.04-latest.tar.bz2 | tar --numeric-owner -xj -C /mnt/emmc/
umount /mnt/emmc
sync


Note: The ext4 filesystem can be used instead of ext3, but it may require additional options. U-Boot does not support the 64bit addressing added as the default behavior in recent revisions of mkfs.ext4. If using e2fsprogs 1.43 or newer, the options "-O ^64bit,^metadata_csum" must be used with ext4 for proper compatibility. Older versions of e2fsprogs do not need these options passed nor are they needed for ext3.