Where is update.sh

Hi

I would like to copy the yocto image to mmc.
I refer to the following site

Where is the update.sh file?

Thanks.

Thank you.

You are welcome.

  • angstrom-lxde-image

update.sh is in Apalis-iMX6_LXDE-Image_2.8b4-20181029.tar.bz2

  • boot2qt isn’t

I did copy and modify update.sh .

It works well.

Perfect that it works. Thanks for the feedback.
Did you try if you can flash boot2qt image using Toradex Easy Installer?

I did at u-boot

 1.  sdcard prepare
 

$ sudo fdisk /dev/sda ( one partition made )

$ sudo mkfs.fat /dev/sda1

$ sudo mount /dev/sdb1 /mnt/


2. file copy to update dectory


$ cd /build/oe-core/build-apalis-imx6/tmp/deploy/images/apalis-imx6

$ sudo cp flash_blk.img /build/oe-core/Apalis-iMX6_LXDE-Image_2.8.4/apalis-imx6_bin/

$ sudo cp flash_eth.img /build/oe-core/Apalis-iMX6_LXDE-Image_2.8.4/apalis-imx6_bin/

$ sudo cp fwd_blk.img /build/oe-core/Apalis-iMX6_LXDE-Image_2.8.4/apalis-imx6_bin/

$ sudo cp fwd_eth.img /build/oe-core/Apalis-iMX6_LXDE-Image_2.8.4/apalis-imx6_bin/

$ sudo cp fwd_mmc.img /build/oe-core/Apalis-iMX6_LXDE-Image_2.8.4/apalis-imx6_bin/

$ sudo cp SPL /build/oe-core/Apalis-iMX6_LXDE-Image_2.8.4/apalis-imx6_bin/

$ sudo cp -af u-boot* /build/oe-core/Apalis-iMX6_LXDE-Image_2.8.4/apalis-imx6_bin/

$ sudo cp -af uImage* /build/oe-core/Apalis-iMX6_LXDE-Image_2.8.4/apalis-imx6_bin/

$ sudo cp b2qt-embedded-qt5-image-apalis-imx6-20181114072344.rootfs.tar.xz /build/oe-core/Apalis-iMX6_LXDE-Image_2.8.4/

 - uncompress rootfs
 
$ cd /build/oe-core/Apalis-iMX6_LXDE-Image_2.8.4/

$ sudo mkdir rootfs

$ cd rootfs/

$ sudo tar xf ../b2qt-embedded-qt5-image-apalis-imx6-20181114072344.rootfs.tar.xz


3. update.sh modify

KERNEL_IMAGETYPE="uImage"

U_BOOT_BINARY=u-boot.imx-spl


4. Run update.sh


 $ sudo ./update.sh -m 1 -o /mnt/
 
    Apalis iMX6 rootfs specified
    
    Creating MBR file and do the partitioning
    0+0 records in
    0+0 records out
    0 bytes copied, 0.000118009 s, 0.0 kB/s
    Model:  (file)
    Disk /build/oe-core/Apalis-iMX6_LXDE-Image_2.8.4/apalis-imx6_bin/mbr.bin: 7168000s
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags:
    
    Number  Start   End       Size      Type     File system  Flags
     1      8192s   40959s    32768s    primary               lba
     2      40960s  7127039s  7086080s  primary
    
    
    Creating VFAT partition image with the kernel
    mkfs.fat 3.0.28 (2015-05-16)
    mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
    
    Creating rootfs partition image
    981+0 records in
    981+0 records out
    1028653056 bytes (1.0 GB, 981 MiB) copied, 0.513367 s, 2.0 GB/s
    mke2fs 1.42.13 (17-May-2015)
    Discarding device blocks: done
    Creating filesystem with 251136 4k blocks and 62848 inodes
    Filesystem UUID: 30b3948d-747e-4e15-9c70-d23069067f28
    Superblock backups stored on blocks:
            32768, 98304, 163840, 229376
    
    Allocating group tables: done
    Writing inode tables: done
    Creating journal (4096 blocks): done
    Writing superblocks and filesystem accounting information: done
    
    tune2fs 1.42.13 (17-May-2015)
    Setting maximal mount count to -1
    Setting interval between checks to 0 seconds
    Successfully copied data to target folder.
    
    To flash the Apalis/Colibri iMX6 module a running U-Boot is required. Boot the
    module to the U-Boot prompt and
    
    insert the SD card, USB flash drive or when using TFTP connect Ethernet only
    and enter:
    'run setupdate'
    
    then to update all components enter:
    'run update'
    
    to update a single component enter one of:
    'run update_uboot'
    'run update_kernel'
    'run update_fdt'
    'run update_rootfs'
    
    If you don't have a working U-Boot anymore, connect your PC to the module's USB
    client port, bring the module in the serial download mode and start the
    update.sh script with the -d option. This will copy U-Boot into the modules RAM
    and execute it.
    
$ sudo umount /mnt


update at u-boot

U-Boot 2016.11-2.7.5+g52259cf (Oct 30 2018 - 12:04:57 +0900)


CPU:   Freescale i.MX6Q rev1.5 at 792 MHz

Reset cause: POR

I2C:   ready

DRAM:  1 GiB

PMIC:  device id: 0x10, revision id: 0x21, programmed

MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2

auto-detected panel vga-rgb

Display: vga-rgb (640x480)

In:    serial

Out:   serial

Err:   serial

Model: Toradex Apalis iMX6 Quad 1GB V1.1B, Serial# 05196439

Net:   using PHY at 7

FEC [PRIME]

Hit any key to stop autoboot:  0

Apalis iMX6 # run setupdate

reading flash_blk.img

710 bytes read in 16 ms (43 KiB/s)

reading flash_blk.img

710 bytes read in 16 ms (43 KiB/s)

## Executing script at 12000000

reading apalis_imx6/flash_blk.img

4184 bytes read in 23 ms (176.8 KiB/s)

## Executing script at 12000000

enter "run update" to update the entire module

Apalis iMX6 # run update_uboot

reading apalis_imx6/u-boot.imx-spl

371440 bytes read in 45 ms (7.9 MiB/s)

switch to partitions #1, OK

mmc0(part 1) is current device


MMC write: dev # 0, block # 138, count 726 ... 726 blocks written: OK

Fuse 0, 5:     5072

Fast boot mode already fused, no need to fuse

Apalis iMX6 # run update_kernel

reading apalis_imx6/uImage

5550288 bytes read in 295 ms (17.9 MiB/s)

writing uImage

5550288 bytes written

Apalis iMX6 # run update_fdt

reading apalis_imx6/imx6q-apalis-ixora-v1.1.dtb

49743 bytes read in 32 ms (1.5 MiB/s)

writing imx6q-apalis-ixora-v1.1.dtb

49743 bytes written

Apalis iMX6 # run update_3

reading apalis_imx6/root.ext4-100

67108864 bytes read in 3637 ms (17.6 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device

MMC write: dev # 0, block # 40960, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-101

67108864 bytes read in 3506 ms (18.3 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 172032, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-102

67108864 bytes read in 3779 ms (16.9 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 303104, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-103

67108864 bytes read in 3568 ms (17.9 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 434176, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-104

67108864 bytes read in 3727 ms (17.2 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 565248, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-105

67108864 bytes read in 3453 ms (18.5 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 696320, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-106

67108864 bytes read in 3408 ms (18.8 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 827392, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-107

67108864 bytes read in 3415 ms (18.7 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 958464, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-108

67108864 bytes read in 3497 ms (18.3 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 1089536, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-109

67108864 bytes read in 3488 ms (18.3 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 1220608, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-110

67108864 bytes read in 3339 ms (19.2 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 1351680, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-111

67108864 bytes read in 3446 ms (18.6 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 1482752, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-112

67108864 bytes read in 3548 ms (18 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 1613824, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-113

67108864 bytes read in 3446 ms (18.6 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 1744896, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-114

67108864 bytes read in 3404 ms (18.8 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 1875968, count 131072 ... 131072 blocks written: OK

reading apalis_imx6/root.ext4-115

22020096 bytes read in 1138 ms (18.5 MiB/s)

switch to partitions #0, OK

mmc0(part 0) is current device


MMC write: dev # 0, block # 2007040, count 43008 ... 43008 blocks written: OK

Apalis iMX6 #

hi @LEEBAK

Which Yocto image are you talking about? Did you create the image yourself? If yes, then you should find Apalis-iMX6_type_Image_XX.bz2 file in the deploy folder, type name stands for the type of image you built (LXDE, Console, Qt, …). The file update.sh is included in the .bz2 file.

You can find regular Bsp builds here.

Best regards, Jaski