Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: teaching: Review ARM lab #287

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

razvand
Copy link

@razvand razvand commented May 18, 2021

Review and improve contents. Do minor coding updates to skeleton.

Review and improve contents. Do minor coding updates to skeleton.

Signed-off-by: Razvan Deaconescu <[email protected]>
@razvand razvand added the labs Kernel practical labs label May 18, 2021
@razvand razvand requested a review from dbaluta May 18, 2021 19:30
@lkt-bot
Copy link
Collaborator

lkt-bot commented May 18, 2021

-append "root=/dev/mmcblk0 rw console=ttymxc0 loglevel=8 earlycon printk" -sd tools/labs/core-image-minimal-qemuarm.ext4

.. note:: LCDIF and ASRC devices are not well supported with ``Qemu``. Remove them from compilation.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add explanation on how to do this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explanation is two lines below.

0209c000-0209ffff : 209c000.gpio gpio@209c000
021a0000-021a3fff : 21a0000.i2c i2c@21a0000
80000000-9fffffff : System RAM
$ cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not the file that we run cat on. It's /proc/iomem

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. @razvand can you fix this. Other than that it looks good to me.

└── var

As for ``x86`` we will make use of Yocto rootfs images. In order to download an ``ext4`` rootfs image for ``arm32`` one needs to run:
root@so2$ tree -d -L 2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a lot of whitespace code changes, are these intentional?

$ make -j8
$ ./build/qemu-system-arm
$ git clone https://gitlab.com/qemu-project/qemu.git
$ ./configure --target-list=arm-softmmu --disable-docs

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe make it clear that this must be done from the qemu directory after cloning.


4. Hello World
--------------

Use the ``4-hello/`` folder in the lab skeleton folder.

Implement a simple kernel module that prints a message at load/unload time. Compile it and load it on ``i.MX6UL`` emulated platform.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The module is already implemented. This might cause confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
labs Kernel practical labs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants