This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5726: AM572x-EVM

Part Number: AM5726

Hello,

I have some questions on your SDK. I currently have two of your AM572X evm kits.

I have followed the instruction to build from source. I have tried versions 06_00_00_07 and 06_01_00_08 of your SDK. I had to deviate from your documentation in the following areas.

  1. There is no lunch option for the am57xx-evm. I read on your forums that I can replace that with Beagle_boardx15-userdebug
  2. I had to increase the size of the partitions on u-boot and android.
  3. In your sd card create, I replace the u-boot-am57xx.img (prebuilt directory) with the u-boot built one. I have tried leaving it in with no luck.
  4. MLO from u-boot directory instead of the one in the prebuilt directory.

For 3 and 4 I have left the prebuilt pieces in and tried swapping them out. Either way it flashes fine. Init spins up and it gets to trying to do some selinux things and then it says:

selinux: SELinux: could not open /sepolicy: no such file or directory

init: Failed to load monolithic SELinux policy: no file or directory

init: Unable to load SELinux policy

and then it reboots and loops. Any suggestions on how to get past this issue?

Best,

Ada

  • 1. the lunch name changed : Try "beagle_x15-userdebug" for AM57xx Platforms

    2. Why do you have to increase the size of partitions in uboot? Which partitions are you increasing the size ?

    3. you need to update u-boot.img and MLO in SDcard if you are rebuilding

    Please send the full log.

  • Hello Adam,

    I am wondering if you could please share any updates.

    Regards,
    Krunal 

    1.  am using the beagle_x15-userdebug option in the lunch menu. Thank you for confirming that is the right choice.
    2. I had to increase the size of the system partition. I was getting an error when writing the system.img saying that It was bigger than the allotted size.
    3. I am also updating the MLO and U-boot.img. I basically took the script from the TI SDK and made sure the MLO and U-Boot.img sym-linked to the script names.

     

    I am attaching the dmesg from both the prebuilt (which works) and the source build. I did notice that there is an fstab issue, but it is also in the prebuild dmesg logs.

     

    I was trying to build this from source to get Android to recognize a wifi interface. I have installed a Intel 9260 card onto the dev board and was able to get the linux side to work (microcode, ko files, turning the card on, scanning for aps). I was told that Android had to be built to recognize the interface (otherwise Android isn’t aware of the card).

     

    I am also attaching a notes.txt that has some of my findings about the partition sizing and interface defining portion.

    Let me know what you think and if you have any advice.

    Welcome to minicom 2.7.1
    
    OPTIONS: I18n 
    Compiled on Aug 13 2017, 15:25:34.
    Port /dev/ttyUSB0
    
    Press CTRL-A Z for help on special keys
    
    
    U-Boot SPL 2019.01-g8784d2cea7-dirty (Nov 04 2019 - 16:03:37 -0500)
    DRA752-GP ES2.0
    Trying to boot from MMC1
    no pinctrl state for default mode
    no pinctrl state for default mode
    Loading Environment from FAT... OK
    
    
    U-Boot 2019.01-g8784d2cea7-dirty (Nov 04 2019 - 16:03:37 -0500)
    
    CPU  : DRA752-GP ES2.0
    Model: TI AM5728 BeagleBoard-X15
    Board: AM572x EVM REV A.3A
    DRAM:  2 GiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Loading Environment from FAT... OK
    Net:   eth0: ethernet@48484000
    Hit any key to stop autoboot:  0 
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    ** Unable to read file boot.scr **
    1394 bytes read in 2 ms (680.7 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc0 ...
    Running uenvcmd ...
    1 bytes read in 4 ms (0 Bytes/s)
    Already setup.
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    ** Unable to read file /zImage **
    Trying to boot Linux from eMMC ...
    switch to partitions #0, OK
    mmc1(part 0) is current device
    SD/MMC found on device 1
    ** Unrecognized filesystem type **
    Trying to boot Android from eMMC ...
    switch to partitions #0, OK
    mmc1(part 0) is current device
    
    MMC read: dev # 1, block # 87552, count 20480 ... 20480 blocks read: OK
    ## Loading kernel from FIT Image at 90000000 ...
       Using 'am57xx-evm-reva3.dtb' configuration
       Trying 'kernel@1' kernel subimage
         Description:  TI kernel
         Type:         Kernel Image
         Compression:  uncompressed
         Data Start:   0x900000b8
         Data Size:    5517824 Bytes = 5.3 MiB
         Architecture: ARM
         OS:           Linux
         Load Address: 0x82000000
         Entry Point:  0x82000000
       Verifying Hash Integrity ... OK
    ## Loading ramdisk from FIT Image at 90000000 ...
       Using 'am57xx-evm-reva3.dtb' configuration
       Trying 'ramdisk@1' ramdisk subimage
         Description:  Android Ramdisk Image
         Type:         RAMDisk Image
         Compression:  uncompressed
         Data Start:   0x90543368
         Data Size:    1509929 Bytes = 1.4 MiB
         Architecture: ARM
         OS:           Linux
         Load Address: 0x88080000
         Entry Point:  0x88080000
       Verifying Hash Integrity ... OK
       Loading ramdisk from 0x90543368 to 0x88080000
    ## Loading fdt from FIT Image at 90000000 ...
       Using 'am57xx-evm-reva3.dtb' configuration
       Trying 'fdt@2' fdt subimage
         Description:  AM57xx-beagle-x15-revc
         Type:         Flat Device Tree
         Compression:  uncompressed
         Data Start:   0x906d40d0
         Data Size:    131583 Bytes = 128.5 KiB
         Architecture: ARM
         Load Address: 0x83000000
       Verifying Hash Integrity ... OK
       Loading fdt from 0x906d40d0 to 0x83000000
    ## Loading fdt from FIT Image at 90000000 ...
       Trying 'fdt@3' fdt subimage
         Description:  AM57xx-evm-common overlay
         Type:         Flat Device Tree
         Compression:  uncompressed
         Data Start:   0x906f435c
         Data Size:    5218 Bytes = 5.1 KiB
         Architecture: ARM
         Load Address: 0x83080000
       Verifying Hash Integrity ... OK
       Loading fdt from 0x906f435c to 0x83080000
    ## Loading fdt from FIT Image at 90000000 ...
       Trying 'fdt@7' fdt subimage
         Description:  AM57xx-evm-reva3 overlay
         Type:         Flat Device Tree
         Compression:  uncompressed
         Data Start:   0x906f6c28
         Data Size:    787 Bytes = 787 Bytes
         Architecture: ARM
         Load Address: 0x83090000
       Verifying Hash Integrity ... OK
       Loading fdt from 0x906f6c28 to 0x83090000
       Booting using the fdt blob at 0x83000000
       Loading Kernel Image ... OK
       Loading Ramdisk to 8fe8f000, end 8ffffa29 ... OK
       Loading Device Tree to 8fe6b000, end 8fe8ece4 ... OK
    Using machid 0xfe6 from environment
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.19.68-gefef58ffdd (oe-user@oe-host) (gcc version 8.3.0 (GNU Toolchain fo9
    [    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
    [    0.000000] CPU: div instructions available: patching division code
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [    0.000000] OF: fdt: Machine model: TI AM5728 EVM
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 56 MiB
    [    0.000000] OF: reserved mem: initialized node ipu2-memory@95800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 64 MiB
    [    0.000000] OF: reserved mem: initialized node dsp1-memory@99000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x000000009d000000, size 32 MiB
    [    0.000000] OF: reserved mem: initialized node ipu1-memory@9d000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x000000009f000000, size 8 MiB
    [    0.000000] OF: reserved mem: initialized node dsp2-memory@9f000000, compatible id shared-dma-pool
    [    0.000000] cma: Reserved 256 MiB at 0x00000000efc00000
    [    0.000000] OMAP4: Map 0x00000000ffd00000 to (ptrval) for dram barrier
    [    0.000000] DRA752 ES2.0
    [    0.000000] random: get_random_bytes called from start_kernel+0xb4/0x4e8 with crng_init=0
    [    0.000000] percpu: Embedded 18 pages/cpu s42700 r8192 d22836 u73728
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 522134
    [    0.000000] Kernel command line: androidboot.selinux=permissive printk.devkmsg=on cma=256m vmalloc=4d
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 1626904K/2094080K available (12288K kernel code, 712K rwdata, 3548K rodata, 2048)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xe7000000 - 0xff800000   ( 392 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe6800000   ( 616 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (14304 kB)
    [    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (2048 kB)
    [    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 713 kB)
    [    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 393 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000]  Tasks RCU enabled.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] GIC: Using split EOI/Deactivate mode
    [    0.000000] OMAP clockevent source: timer1 at 32786 Hz
    [    0.000000] arch_timer: cp15 timer(s) running at 6.14MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_s
    [    0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
    [    0.000018] Switching to timer-based delay loop, resolution 162ns
    [    0.000296] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039s
    [    0.000306] OMAP clocksource: 32k_counter at 32768 Hz
    [    0.000807] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIP)
    [    0.000825] pid_max: default: 32768 minimum: 301
    [    0.000916] Security Framework initialized
    [    0.000929] SELinux:  Initializing.
    [    0.001043] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001058] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001741] CPU: Testing write buffer coherency: ok
    [    0.001780] CPU0: Spectre v2: using ICIALLU workaround
    [    0.002023] /cpus/cpu@0 missing clock-frequency property
    [    0.002045] /cpus/cpu@1 missing clock-frequency property
    [    0.002058] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.059903] Setting up static identity map for 0x80200000 - 0x80200060
    [    0.079916] rcu: Hierarchical SRCU implementation.
    [    0.100142] EFI services will not be available.
    [    0.119981] smp: Bringing up secondary CPUs ...
    [    0.200323] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.200329] CPU1: Spectre v2: using ICIALLU workaround
    [    0.200456] smp: Brought up 1 node, 2 CPUs
    [    0.200468] SMP: Total of 2 processors activated (24.59 BogoMIPS).
    [    0.200477] CPU: All CPU(s) started in HYP mode.
    [    0.200485] CPU: Virtualization extensions available.
    [    0.200533] CPU1: update max cpu_capacity 1024
    [    0.210330] CPU1: update max cpu_capacity 1024
    [    0.221062] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [    0.221463] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126044627s
    [    0.221481] futex hash table entries: 512 (order: 3, 32768 bytes)
    [    0.227639] pinctrl core: initialized pinctrl subsystem
    [    0.228176] DMI not present or invalid.
    [    0.228468] NET: Registered protocol family 16
    [    0.229773] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.230774] omap_hwmod: l3_main_2 using broken dt data from ocp
    [    0.333832] wkupaon_cm:clk:0068:0: failed to disable
    [    0.432114] schedtune: configured to support 5 boost groups
    [    0.432535] audit: initializing netlink subsys (disabled)
    [    0.432711] audit: type=2000 audit(0.420:1): state=initialized audit_enabled=0 res=1
    [    0.433239] cpuidle: using governor ladder
    [    0.433381] cpuidle: using governor menu
    [    0.444251] OMAP GPIO hardware version 0.1
    [    0.468673] No ATAGs?
    [    0.468750] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.468765] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.469303] omap4_sram_init:Unable to allocate sram needed to handle errata I688
    [    0.469316] omap4_sram_init:Unable to get sram pool needed to handle errata I688
    [    0.470060] OMAP DMA hardware revision 0.0
    [    0.482824] edma 43300000.edma: memcpy is disabled
    [    0.486304] edma 43300000.edma: TI EDMA DMA engine driver
    [    0.493612] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 support)
    [    0.494986] evm_5v0: supplied by main_12v0
    [    0.495410] com_3v6: supplied by evm_5v0
    [    0.498552] omap-iommu 40d01000.mmu: 40d01000.mmu registered
    [    0.498746] omap-iommu 40d02000.mmu: 40d02000.mmu registered
    [    0.498989] omap-iommu 58882000.mmu: 58882000.mmu registered
    [    0.499237] omap-iommu 55082000.mmu: 55082000.mmu registered
    [    0.499636] omap-iommu 41501000.mmu: 41501000.mmu registered
    [    0.499819] omap-iommu 41502000.mmu: 41502000.mmu registered
    [    0.500106] iommu: Adding device 58820000.ipu to group 1
    [    0.500189] iommu: Adding device 55020000.ipu to group 2
    [    0.500322] iommu: Adding device 40800000.dsp to group 0
    [    0.500597] iommu: Adding device 41000000.dsp to group 3
    [    0.501899] SCSI subsystem initialized
    [    0.502080] usbcore: registered new interface driver usbfs
    [    0.502133] usbcore: registered new interface driver hub
    [    0.502226] usbcore: registered new device driver usb
    [    0.503246] palmas 0-0058: Irq flag is 0x00000008
    [    0.525744] palmas 0-0058: Muxing GPIO 2f, PWM 0, LED 0
    [    0.527300] SMPS12: supplied by regulator-dummy
    [    0.528954] SMPS3: supplied by regulator-dummy
    [    0.530573] SMPS45: supplied by regulator-dummy
    [    0.532396] SMPS6: supplied by regulator-dummy
    [    0.533770] SMPS7: supplied by regulator-dummy
    [    0.535159] SMPS8: supplied by regulator-dummy
    [    0.536402] SMPS9: supplied by regulator-dummy
    [    0.537098] LDO1: supplied by regulator-dummy
    [    0.551382] LDO2: supplied by regulator-dummy
    [    0.560748] random: fast init done
    [    0.561268] LDO3: supplied by regulator-dummy
    [    0.571274] LDO4: supplied by regulator-dummy
    [    0.581276] LDO5: supplied by regulator-dummy
    [    0.581975] LDO6: supplied by regulator-dummy
    [    0.582670] LDO7: supplied by regulator-dummy
    [    0.583380] LDO8: supplied by regulator-dummy
    [    0.584063] LDO9: supplied by regulator-dummy
    [    0.601330] LDOLN: supplied by regulator-dummy
    [    0.611334] LDOUSB: supplied by regulator-dummy
    [    0.623727] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
    [    0.624340] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
    [    0.624900] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 400 kHz
    [    0.625118] media: Linux media interface: v0.10
    [    0.625156] videodev: Linux video capture interface: v2.00
    [    0.625234] pps_core: LinuxPPS API ver. 1 registered
    [    0.625244] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.625265] PTP clock support registered
    [    0.625298] EDAC MC: Ver: 3.0.0
    [    0.626078] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
    [    0.626332] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
    [    0.626852] Advanced Linux Sound Architecture Driver Initialized.
    [    0.627719] clocksource: Switched to clocksource arch_sys_counter
    [    0.689799] VFS: Disk quotas dquot_6.6.0
    [    0.689865] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.691710] NET: Registered protocol family 2
    [    0.692326] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
    [    0.692356] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.692420] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.692546] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.692620] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.692657] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.692782] NET: Registered protocol family 1
    [    0.693319] Trying to unpack rootfs image as initramfs...
    [    0.751117] Freeing initrd memory: 1476K
    [    0.752005] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    0.752226] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [    0.753523] Initialise system trusted keyrings
    [    0.753720] workingset: timestamp_bits=13 max_order=19 bucket_order=6
    [    0.758800] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.758925] Registering sdcardfs 0.1
    [    0.759138] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.764166] Key type asymmetric registered
    [    0.764179] Asymmetric key parser 'x509' registered
    [    0.764230] bounce: pool size: 64 pages
    [    0.764268] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.764279] io scheduler noop registered
    [    0.764289] io scheduler deadline registered
    [    0.764397] io scheduler cfq registered (default)
    [    0.764408] io scheduler mq-deadline registered
    [    0.764417] io scheduler kyber registered
    [    0.768810] phy phy-4a084000.phy.0: Linked as a consumer to regulator.25
    [    0.769136] phy phy-4a085000.phy.1: Linked as a consumer to regulator.25
    [    0.771559] pinctrl-single 4a003400.pinmux: 282 pins, size 1128
    [    0.775836] dra7-pcie 51000000.pcie: Linked as a consumer to phy-4a094000.pciephy.3
    [    0.776102] dra7-pcie 51000000.pcie: WA for Errata i870 not applied
    [    0.776198] dra7-pcie 51000000.pcie: host bridge /ocp/axi@0/pcie@51000000 ranges:
    [    0.776238] dra7-pcie 51000000.pcie:    IO 0x20003000..0x20012fff -> 0x00000000
    [    0.776266] dra7-pcie 51000000.pcie:   MEM 0x20013000..0x2fffffff -> 0x20013000
    [    0.876356] dra7-pcie 51000000.pcie: Link up
    [    0.876494] dra7-pcie 51000000.pcie: PCI host bridge to bus 0000:00
    [    0.876509] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    0.876521] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
    [    0.876533] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
    [    0.883004] PCI: bus0: Fast back to back transfers disabled
    [    0.913674] PCI: bus1: Fast back to back transfers disabled
    [    0.913718] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff 64bit]
    [    0.913739] pci 0000:00:00.0: BAR 8: assigned [mem 0x20200000-0x202fffff]
    [    0.913756] pci 0000:01:00.0: BAR 0: assigned [mem 0x20200000-0x20203fff 64bit]
    [    0.913807] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
    [    0.913822] pci 0000:00:00.0:   bridge window [mem 0x20200000-0x202fffff]
    [    0.914143] pcieport 0000:00:00.0: Signaling PME with IRQ 173
    [    0.914277] pcieport 0000:00:00.0: AER enabled with IRQ 173
    [    0.915268] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [    0.915349] pwm-backlight backlight: Linked as a consumer to regulator.0
    [    0.918650] vdd_3v3: supplied by regen1
    [    0.918908] aic_dvdd_fixed: supplied by vdd_3v3
    [    0.918989] vtt_fixed: supplied by smps3
    [    0.921588] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.924258] console [ttyS2] disabled
    [    0.924319] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 45, base_baud = 3000000) is a 8250
    [    2.127805] console [ttyS2] enabled
    [    2.131798] 48422000.serial: ttyS7 at MMIO 0x48422000 (irq = 46, base_baud = 3000000) is a 8250
    [    2.142821] omap_rng 48090000.rng: Random Number Generator ver. 20
    [    2.143154] random: crng init done
    [    2.152638] omapdss_dss 58000000.dss: Linked as a consumer to regulator.24
    [    2.159749] omapdss_dss 58000000.dss: Dropping the link to regulator.24
    [    2.169791] panel-simple display: display supply power not found, using dummy regulator
    [    2.177953] panel-simple display: Linked as a consumer to regulator.0
    [    2.194988] brd: module loaded
    [    2.204492] loop: module loaded
    [    2.211825] libphy: Fixed MDIO Bus: probed
    [    2.216828] tun: Universal TUN/TAP device driver, 1.6
    [    2.277755] davinci_mdio 48485000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    2.285452] libphy: 48485000.mdio: probed
    [    2.294273] davinci_mdio 48485000.mdio: phy[1]: device 48485000.mdio:01, driver Micrel KSZ9031 GigabY
    [    2.303997] davinci_mdio 48485000.mdio: phy[2]: device 48485000.mdio:02, driver Micrel KSZ9031 GigabY
    [    2.314259] cpsw 48484000.ethernet: Detected MACID = fc:0f:4b:8c:37:06
    [    2.320878] cpsw 48484000.ethernet: initialized cpsw ale version 1.4
    [    2.327263] cpsw 48484000.ethernet: ALE Table size 1024
    [    2.332576] cpsw 48484000.ethernet: cpts: overflow check period 500 (jiffies)
    [    2.340595] cpsw 48484000.ethernet: cpsw: Detected MACID = fc:0f:4b:8c:37:07
    [    2.348699] PPP generic driver version 2.4.2
    [    2.353073] PPP BSD Compression module registered
    [    2.357819] PPP Deflate Compression module registered
    [    2.362906] PPP MPPE Compression module registered
    [    2.367737] NET: Registered protocol family 24
    [    2.372200] PPTP driver version 0.8.5
    [    2.377416] dwc3 48890000.usb: Failed to get clk 'ref': -2
    [    2.385216] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    2.392110] ehci-pci: EHCI PCI platform driver
    [    2.396613] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    2.402857] ohci-pci: OHCI PCI platform driver
    [    2.408162] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [    2.413693] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    [    2.421622] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x00000000020100
    [    2.431118] xhci-hcd xhci-hcd.0.auto: irq 176, io mem 0x48890000
    [    2.437563] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
    [    2.445892] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    2.453164] usb usb1: Product: xHCI Host Controller
    [    2.458080] usb usb1: Manufacturer: Linux 4.19.68-gefef58ffdd xhci-hcd
    [    2.464637] usb usb1: SerialNumber: xhci-hcd.0.auto
    [    2.469891] hub 1-0:1.0: USB hub found
    [    2.473692] hub 1-0:1.0: 1 port detected
    [    2.477975] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [    2.483497] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    [    2.491216] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
    [    2.497867] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [    2.506139] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
    [    2.514458] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    2.521731] usb usb2: Product: xHCI Host Controller
    [    2.526634] usb usb2: Manufacturer: Linux 4.19.68-gefef58ffdd xhci-hcd
    [    2.533209] usb usb2: SerialNumber: xhci-hcd.0.auto
    [    2.538460] hub 2-0:1.0: USB hub found
    [    2.542258] hub 2-0:1.0: 1 port detected
    [    2.546622] usbcore: registered new interface driver usb-storage
    [    2.553212] usbcore: registered new interface driver xpad
    [    2.558692] usbcore: registered new interface driver usb_acecad
    [    2.564669] usbcore: registered new interface driver aiptek
    [    2.570317] usbcore: registered new interface driver gtco
    [    2.575774] usbcore: registered new interface driver hanwang
    [    2.581510] usbcore: registered new interface driver kbtab
    [    2.587079] i2c /dev entries driver
    [    2.593860] gpio-fan gpio_fan: GPIO fan initialized
    [    2.599972] tmp102 0-0048: initialized
    [    2.605776] device-mapper: uevent: version 1.0.3
    [    2.610598] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com
    [    2.620512] cpu cpu0: Linked as a consumer to regulator.8
    [    2.626018] cpu cpu0: Linked as a consumer to regulator.31
    [    2.632355] energy_model: pd0: invalid cap. state: -22
    [    2.637594] cpu_cooling: cpu0 is not running as cooling device: -22
    [    2.644683] sdhci: Secure Digital Host Controller Interface driver
    [    2.650964] sdhci: Copyright(c) Pierre Ossman
    [    2.656208] sdhci-pltfm: SDHCI platform and OF driver helper
    [    2.662581] omap_gpio 4805d000.gpio: Could not set line 27 debounce to 200000 microseconds (-22)
    [    2.671442] sdhci-omap 4809c000.mmc: Got CD GPIO
    [    2.676249] sdhci-omap 4809c000.mmc: Linked as a consumer to regulator.30
    [    2.683292] sdhci-omap 4809c000.mmc: Linked as a consumer to regulator.15
    [    2.690180] sdhci-omap 4809c000.mmc: Dropping the link to regulator.15
    [    2.696792] sdhci-omap 4809c000.mmc: Linked as a consumer to regulator.5
    [    2.703979] sdhci-omap 4809c000.mmc: Linked as a consumer to regulator.15
    [    2.710881] sdhci-omap 4809c000.mmc: no pinctrl state for ddr_3_3v mode
    [    2.743821] mmc0: SDHCI controller on 4809c000.mmc [4809c000.mmc] using ADMA
    [    2.751580] sdhci-omap 480b4000.mmc: Linked as a consumer to regulator.5
    [    2.758490] sdhci-omap 480b4000.mmc: Dropping the link to regulator.5
    [    2.765062] sdhci-omap 480b4000.mmc: Linked as a consumer to regulator.5
    [    2.797812] mmc1: SDHCI controller on 480b4000.mmc [480b4000.mmc] using ADMA
    [    2.805680] sdhci-omap 480ad000.mmc: Linked as a consumer to regulator.1
    [    2.812533] sdhci-omap 480ad000.mmc: Dropping the link to regulator.1
    [    2.819467] sdhci-omap 480ad000.mmc: Linked as a consumer to regulator.2
    [    2.826495] sdhci-omap 480ad000.mmc: Linked as a consumer to regulator.1
    [    2.833363] sdhci-omap 480ad000.mmc: no pinctrl state for sdr104 mode
    [    2.840129] sdhci-omap 480ad000.mmc: no pinctrl state for ddr50 mode
    [    2.846746] sdhci-omap 480ad000.mmc: no pinctrl state for hs200_1_8v mode
    [    2.857734] usb 1-1: new high-speed USB device number 2 using xhci-hcd
    [    2.861601] mmc0: host does not support reading read-only switch, assuming write-enable
    [    2.877224] mmc0: new high speed SDHC card at address aaaa
    [    2.882758] mmc2: SDHCI controller on 480ad000.mmc [480ad000.mmc] using PIO
    [    2.890797] ledtrig-cpu: registered to indicate activity on CPUs
    [    2.893331] mmcblk0: mmc0:aaaa SC32G 29.7 GiB 
    [    2.898310] hidraw: raw HID events driver (C) Jiri Kosina
    [    2.906151] mmc1: new DDR MMC card at address 0001
    [    2.909088] usbcore: registered new interface driver usbhid
    [    2.915372]  mmcblk0: p1
    [    2.917145] usbhid: USB HID core driver
    [    2.922083] mmcblk1: mmc1:0001 S10004 3.56 GiB 
    [    2.924118] ashmem: initialized
    [    2.928554] mmcblk1boot0: mmc1:0001 S10004 partition 1 4.00 MiB
    [    2.937877] mmcblk1boot1: mmc1:0001 S10004 partition 2 4.00 MiB
    [    2.944011] mmcblk1rpmb: mmc1:0001 S10004 partition 3 4.00 MiB, chardev (243:0)
    [    2.954050] u32 classifier
    [    2.956769]     input device check on
    [    2.960566]     Actions configured
    [    2.964493]  mmcblk1: p1 p2 p3 p4 p5 p6 p7 p8 p9
    [    2.967454] xt_time: kernel timezone is -0000
    [    2.973637] gre: GRE over IPv4 demultiplexor driver
    [    2.978573] IPv4 over IPsec tunneling driver
    [    2.983649] Initializing XFRM netlink socket
    [    2.988358] NET: Registered protocol family 10
    [    2.993774] Segment Routing with IPv6
    [    2.997628] mip6: Mobile IPv6
    [    3.001459] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    3.008229] NET: Registered protocol family 17
    [    3.012706] NET: Registered protocol family 15
    [    3.017189] l2tp_core: L2TP core driver, V2.0
    [    3.021718] l2tp_ppp: PPPoL2TP kernel driver, V2.0
    [    3.026959] Registering SWP/SWPB emulation handler
    [    3.031816] omap_voltage_late_init: Voltage driver support not added
    [    3.038276] Power Management for TI OMAP4+ devices.
    [    3.043947] registered taskstats version 1
    [    3.048118] Loading compiled-in X.509 certificates
    [    3.053241] usb 1-1: New USB device found, idVendor=0451, idProduct=8142, bcdDevice= 1.00
    [    3.061537] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1
    [    3.068775] usb 1-1: SerialNumber: B50400690392
    [    3.082414] dmm 4e000000.dmm: workaround for errata i878 in use
    [    3.089717] dmm 4e000000.dmm: initialized all PAT entries
    [    3.095946] omapdss_dss 58000000.dss: Linked as a consumer to regulator.24
    [    3.103039] DSS: OMAP DSS rev 6.1
    [    3.107748] omapdss_hdmi5 58040000.encoder: Linked as a consumer to regulator.18
    [    3.115256] omapdss_hdmi5 58040000.encoder: Dropping the link to regulator.18
    [    3.124068] dwc3 488d0000.usb: Failed to get clk 'ref': -2
    [    3.133285] omapdss_hdmi5 58040000.encoder: Linked as a consumer to regulator.18
    [    3.140917] hub 1-1:1.0: USB hub found
    [    3.144752] hub 1-1:1.0: 4 ports detected
    [    3.149151] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
    [    3.157131] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_component_ops)
    [    3.188392] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    3.195056] [drm] No driver support for vblank timestamp query.
    [    3.201917] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
    [    3.210972] [drm] Enabling DMM ywrap scrolling
    [    3.215524] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
    [    3.222039] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
    [    3.230166] input: gpio_keys as /devices/platform/gpio_keys/input/input0
    [    3.237535] hctosys: unable to open rtc device (rtc0)
    [    3.242847] usb 2-1: New USB device found, idVendor=0451, idProduct=8140, bcdDevice= 1.00
    [    3.243382] aic_dvdd_fixed: disabling
    [    3.251081] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [    3.254784] ALSA device list:
    [    3.264892]   No soundcards found.
    [    3.269490] Freeing unused kernel memory: 2048K
    [    3.274280] Run /init as init process
    [    3.282014] hub 2-1:1.0: USB hub found
    [    3.285845] hub 2-1:1.0: 4 ports detected
    [    3.285968] init: init first stage started!
    [    3.294636] init: Using Android DT directory /proc/device-tree/firmware/android/
    [    3.303878] init: [libfs_mgr]fs_mgr_read_fstab_default(): failed to find device default fstab
    [    3.363370] EXT4-fs (mmcblk1p7): mounted filesystem without journal. Opts: (null)
    [    3.370948] init: [libfs_mgr]__mount(source=/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/sys
    [    3.386185] EXT4-fs (mmcblk1p8): mounted filesystem without journal. Opts: (null)
    [    3.393810] init: [libfs_mgr]__mount(source=/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/ves
    [    3.406869] init: Skipped setting INIT_AVB_VERSION (not in recovery mode)
    [    3.413837] init: Loading SELinux policy
    [    3.418386] selinux: SELinux:  Could not open /sepolicy:  No such file or directory
    [    3.418386] 
    [    3.427567] init: Failed to load monolithic SELinux policy: No such file or directory
    [    3.435457] init: Unable to load SELinux policy
    [    3.440033] init: Reboot start, reason: reboot, rebootTarget: bootloader
    [    3.446789] init: Reboot ending, jumping to kernel
    [    3.537748] reboot: Restarting system with command 'bootloader'
    
    U-Boot SPL 2019.01-g8784d2cea7-dirty (Nov 04 2019 - 16:03:37 -0500)
    DRA752-GP ES2.0
    Trying to boot from MMC1
    no pinctrl state for default mode
    no pinctrl state for default mode
    Loading Environment from FAT... OK
    
    
    U-Boot 2019.01-g8784d2cea7-dirty (Nov 04 2019 - 16:03:37 -0500)
    
    CPU  : DRA752-GP ES2.0
    Model: TI AM5728 BeagleBoard-X15
    Board: AM572x EVM REV A.3A
    DRAM:  2 GiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Loading Environment from FAT... OK
    Net:   eth0: ethernet@48484000
    Hit any key to stop autoboot:  0 
    
    
    The u-boot side should be around here (Android 9):
    u-boot/include/environment/ti/boot.h
    
    It will look something like this:
    Note that the a and b are only if you have a/b updates enabled. If you do not, you will not see a and b.
    #define PARTS_DEFAULT \
    	"uuid_disk=${uuid_gpt_disk};" \
    	"name=xloader,start=128K,size=128K,uuid=${uuid_gpt_xloader};" \
    	"name=bootloader,size=768K,uuid=${uuid_gpt_bootloader};" \
    	"name=reserved,size=384K,uuid=${uuid_gpt_reserved};" \
    	"name=misc,size=128K,uuid=${uuid_gpt_misc};" \
    	"name=efs,size=16M,uuid=${uuid_gpt_efs};" \
    	"name=crypto,size=16K,uuid=${uuid_gpt_crypto};" \
    	"name=boot_a,size=16M,uuid=${uuid_gpt_boot_a};" \
    	"name=boot_b,size=16M,uuid=${uuid_gpt_boot_b};" \
    	"name=dtb_a,size=256K,uuid=${uuid_gpt_dtb_a};" \
    	"name=dtb_b,size=256K,uuid=${uuid_gpt_dtb_b};" \
    	"name=system_a,size=4G,uuid=${uuid_gpt_system_a};" \
    	"name=system_b,size=4G,uuid=${uuid_gpt_system_b};" \
    	"name=vendor_a,size=100M,uuid=${uuid_gpt_vendor_a};" \
    	"name=vendor_b,size=100M,uuid=${uuid_gpt_vendor_b};" \
    	"name=ipu1,size=1M,uuid=${uuid_gpt_ipu1};" \
    	"name=ipu2,size=1M,uuid=${uuid_gpt_ipu2};" \
    	"name=userdata,size=-,uuid=${uuid_gpt_userdata}"
    ?
    
    
    It also needs to be changed on the Android side on the BoardConfig.mk file for the appropriate board. 
    aosp/device/ti/beagle_x15/BoardConfig.mk
    
    It will look something like this:
    BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648 # it is in bits 
    
    You will need to tell Android what your interface name is:
    location of the config.xml file that you need to update with the interface name for Android. 
    aosp/device/ti/beagle_x15/overlay/frameworks/base/core/res/res/values/config.xml
    
    something like this:
    <string-array translatable="false" name="config_tether_wifi_regexs">
            <item>"mlan\\d"</item>
    </string-array>
    
    6746.prebuilt-dmesg-log.txt

    Best,

    Adam

  • Just a Reference:

    When we moved to android 9, we had to increase system image size , 

    https://git.ti.com/cgit/android/device-ti-beagle-x15/commit/BoardConfig.mk?h=d-pie-core-release&id=e1ccb4762a1a7d7456a921298c31cd1b4992d909

    https://git.ti.com/cgit/ti-u-boot/ti-u-boot/commit/?h=ti-u-boot-2019.01&id=528920f94ef22f9e5cf183cc193246e01280c65e

    --

    So, If you are flashing Android on a device which already had a older android image (Ex: PSDKA 5.3 Rel) , you will need to update the partition table from u boot prompt

    Ref: https://wiki.linaro.org/AOSP/Boards/BeagleboardX15#Flashing 

    --

    I dont see anyother reason why you have to update system image size on the release package.

    Please test release images as-is on your evm, Then start making the needed modifications for the wifi module.

  • Thank you for the help thusfar. I reverted my changes to the file sizes and rebuilt everything. I used your instructions to flash the dev board. I am still getting an error about the partition being too big. I am including the log file, let me know if there is anything else you can think of for me to try.

    log13Nov19.txt

    Best,

    Adam

  • Hi Adam,

    In the PSDK6.1 directory, there should be a setup.sh file and please use the file to flash the pre-built images on the AM572 EVM. For more information on the hardware/software setup, please refer to the following link

    Regards,
    Krunal