I put Linux 4.14.78_1.0.0_ga_images_MX8MMEVK onto the i.mx8m mini and it boots just fine.
I want to enable to enable i.mx8m mini evk to function as a WAP by installing hostapd.
Assuming this is possible, what are the steps to install "apt-get" onto the i.mx8m mini. I have a debug terminal to the linux prompt but I am stuck. How do I add applications?
[Maybe you can provide me a pointer to how to add individual components to the SD card like apt-get?]
Jeff
Ok. I am able to build an image. However I cannot install hostapd on the target system.
Here are the steps I did trying to get hostapd to the target system:
Added the following to conf/local.conf:
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks package-management"
IMAGE_INSTALL_append += " apt hostapd"
Then I ran bitbake:
$ bitbake fsl-image-qt5-validation-imx
and got this:
...rpm-software-management.dnf.git/ does not exist
If I remove package-management, it will build. But then on the target system I cannot install hostapd.
When I read the documentation, it seemed to indicate that I need to create a web-server on the development system (package feed) to serve the packages to the target system. Can someone just supply an example of what I need to do to get hostapd package installed?
Jeff
I made progress. I did not realize I needed 120GB to build linux!
Here is my recipe using Ubuntu 18.04.2
$ DISTRO=fsl-imx-wayland MACHINE=imx8mmevk source fsl-setup-release.sh -b build-wayland
$ bitbake fsl-image-qt5-validation-imx
$ bunzip2 -dk -f fsl-image-qt5-validation-imx-imx8mmevk.sdcard.bz2
$ sudo dd if=fsl-image-qt5-validation-imx-imx8mmevk.sdcard of=/dev/sdb bs=1M conv=fsync
There was a note that said fsl-imx-wayland and fsl-imx-fb are not supported on i.MX 8. If this applies to imx8mmevk, then should I be using fsl-imx-xwayland ?
I installed to sdcard and I am getting a reset loop over and over. Any clues how to debug this?
resetting ...
U-Boot SPL 2018.03-imx_v2018.03_4.14.98_2.0.0_ga+g87a19df5e4 (Aug 13 2019 - 22:07:34 +0000)
power_bd71837_init
DDRINFO: start lpddr4 ddr init
DRAM PHY training for 3000MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 100MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 3000MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from MMC1
"Synchronous Abort" handler, esr 0x02000000
elr: 0000000000920000 lr : 00000000007e3fd8
x0 : 0000000000920000 x1 : 000000000000000c
x2 : 000000000000000c x3 : 0000000000000073
x4 : 0000000000000009 x5 : 0000000000000073
x6 : 00000000401ffd6f x7 : 0000000000000003
x8 : 0000000000000338 x9 : 0000000000000002
x10: 000000000091db9c x11: 00000000401ff980
x12: 0000000000000305 x13: 00000000000002f8
x14: 000000000091dbdc x15: 00000000401ff980
x16: 0000000000000000 x17: 00000000000000ff
x18: 000000000091de40 x19: 00000000007f71b0
x20: 00000000007f7150 x21: 0000000000000000
x22: 00000000007f0e70 x23: 000000000091dde0
x24: 00000000007f0e58 x25: 00000000007f7000
x26: 00000000deadbeef x27: 0000000072000000
x28: 0000000000000000 x29: 000000000091dd70
Resetting CPU ...
resetting ...
U-Boot SPL 2018.03-imx_v2018.03_4.14.98_2.0.0_ga+g87a19df5e4 (Aug 13 2019 - 22:07:34 +0000)
…
Jeff
Assuming you were able to build the image using Yocto.
Note: I am running Ubunto 18.04.2 on VirtualBox with a Shared Folder to my windows laptop
cd build-wayland/tmp/deplay/images/imx8mmevk
# Since the sdcard image is compressed, we need to uncompress it
bunzip2 -dk -f fsl-image-qt5-validation-imx-imx8mmevk.sdcard
cp fsl-image-qt5-validation-imx-imx8mmevk.sdcard /media/sf_VirtualBox_Shared
From Windows, I used Rufus to then take the image from the shared folder and write to sdcard which was plugged into my laptop.
(I found this much easier than doing what some people do where they follow this (Access SD Card on Linux from Windows using VirtualBox | Tech Blog)
Then I physically took sdcard and put it into the evk and booted.
Thanks Jeff!
It's interesting that cp command does the job, I use dd to dump my .sdcard image to MicroSD card, my problem was resolved, I had to use own built fsl-image-validation-imx-imx8mmddr4evk-rootfs.sdcard for my iMX8MM DDR4 EVK board, without ddr4 it won't work.
Also good to know Rufus tool for Windows.
if you need to install hostapd, you should build the image by yourself, you need to add the hostapd in the local.conf, then build the image you need, for more detailed information, you also can refer to the yocto traning document:
Since my post I found a linux manual at https://www.nxp.com/webapp/Download?colCode=imx-yocto-L4.14.98_2.0.0_ga which seems like it talks about uboot etc... Is this the path I should be heading?
I couldn't open your link, if you means 4.14.98 linux documents, yes, you can refer to that, you can refer to the yocto user guide, which tell you how to download and build the 4.14.98 source code and get your own image
I found the proper link: https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tool:IMX-SW
This is the only one that had the 2019 version of Yocto. Under Linux->Linux L4.14.98_2.0.0 Documentation
Is this what I am supposed to follow?
thx. So, I am following i.MX Yocto Project User's Guide to build an image.
Will this by default include apt-get or would this be considered "customization"? If so, are there any examples on how to do this?