Home | History | Annotate | only in /external/u-boot/board/bticino/mamoj
Up to higher level directory
NameDateSize
Kconfig22-Oct-2020150
MAINTAINERS22-Oct-2020338
Makefile22-Oct-2020164
mamoj.c22-Oct-2020508
README22-Oct-20202.8K
spl.c22-Oct-20204.2K

README

      1 BTicino Mamoj board:
      2 ===================
      3 
      4 Build:
      5 
      6  $ make mrproper
      7  $ make imx6dl_mamoj_defconfig
      8  $ make
      9 
     10    This will generate the SPL image called SPL and the u-boot-dtb.img.
     11 
     12 The following methods can be used for booting Mamoj boards:
     13 
     14 1. USB SDP boot
     15 
     16 2. eMMC boot (via DFU)
     17 
     18 3. Falcon mode
     19 
     20 1. USB SDP boot:
     21 ---------------
     22 
     23  - Build imx_usb_loader
     24 
     25     $ git clone git://github.com/boundarydevices/imx_usb_loader.git
     26     $ cd imx_usb_loader
     27     $ make
     28 
     29  - Build the BSP and copy SPL, u-boot-dtb.img in imx_usb_loader directory
     30 
     31  - Put the board in "Serial Download Mode"
     32 
     33  - Plug-in USB-to-Serial, Open minicom 1152008N1 and USB OTG cables to Host
     34 
     35  - Turn-on board
     36 
     37  - Identify VID/PID using lsusb
     38 
     39     Bus 001 Device 010: ID 15a2:0061 Freescale Semiconductor, Inc. i.MX 6Solo/6DualLite SystemOnChip in RecoveryMode
     40 
     41  - Update the conf files
     42 
     43     imx_usb.conf
     44       0x15a2:0x0061, mx6_usb_rom.conf, 0x0525:0xb4a4, mx6_usb_sdp_spl.conf
     45 
     46     mx6_usb_rom.conf
     47       mx6_usb
     48       hid,1024,0x910000,0x10000000,512M,0x00900000,0x40000
     49       SPL:jump header2
     50 
     51     mx6_usb_sdp_spl.conf
     52       mx6_spl_sdp
     53       hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000
     54       u-boot-dtb.img:jump header2
     55 
     56   - Launch the loader
     57 
     58      $ ./imx_usb
     59 
     60   We can see U-Boot boot from USB SDP on minicom
     61 
     62 2. eMMC boot via DFU:
     63 --------------------
     64 
     65   Once booted from USB SDP, program the eMMC as below(make sure to connect USB OTG)
     66 
     67   - Change eMMC partition config
     68 
     69      => mmc partconf 2 1 0 0
     70 
     71   - Partition eMMC on host
     72 
     73      => ums 0 mmc 2
     74 
     75     Host will able to detect the eMMC disk as UMS, partition the same.
     76 
     77   - Program SPL
     78 
     79      => setenv dfu_alt_info $dfu_alt_info_spl
     80      => dfu 0 mmc 2
     81 
     82      At Host
     83 
     84      # dfu-util -D SPL -a spl
     85 
     86   - Program u-boot-dtb.img
     87 
     88      => setenv dfu_alt_info $dfu_alt_info_uboot
     89      => dfu 0 mmc 2
     90 
     91      At Host
     92 
     93      # dfu-util -D u-boot-dtb.img -a u-boot
     94 
     95   Poweroff and Poweron the board and see U-Boot booting from eMMC.
     96 
     97 3. Falcon mode:
     98 --------------
     99 
    100   - Skip 10M space and create dual partitions for eMMC, start sector is 20480
    101 
    102     Partition Map for MMC device 2  --   Partition Type: DOS
    103 
    104     Part    Start Sector    Num Sectors     UUID            Type
    105       1     20480           131072          c52e78be-01     83
    106       2     151552          7581696         c52e78be-02     83
    107 
    108   - Write uImage
    109 
    110     => fatload mmc 2:1 $kernel_addr_r uImage
    111     => mmc write $kernel_addr_r 0x1000 0x4000
    112 
    113   - Write dtb and args
    114 
    115     => setenv bootargs console=ttymxc2,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw quiet
    116     => fatload mmc 2:1 $fdt_addr_r imx6dl-mamoj.dtb
    117     => spl export fdt $kernel_addr_r - $fdt_addr_r
    118     => mmc write 0x13000000 0x800 0x800
    119 
    120   Poweroff and Poweron the board and see Linux booting directly after SPL.
    121 
    122 --
    123 Jagan Teki <jagan (a] amarulasolutions.com>
    124 03/12/18
    125