Skip to content

Commit 2061385

Browse files
authored
Merge pull request #13 from paresh-bhagat12/AM62L_wakeup
Add support for AM62Lx-evm
2 parents 5a9b8af + 9c49edb commit 2061385

File tree

15 files changed

+390
-0
lines changed

15 files changed

+390
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
image boot.vfat {
2+
vfat {
3+
files = {
4+
"tiboot3.bin",
5+
"tispl.bin",
6+
"u-boot.img"
7+
}
8+
}
9+
10+
size = 64M
11+
}
12+
13+
image sdcard.img {
14+
hdimage {
15+
}
16+
17+
partition u-boot {
18+
partition-type = 0xC
19+
bootable = "true"
20+
image = "boot.vfat"
21+
}
22+
23+
partition rootfs {
24+
partition-type = 0x83
25+
image = "rootfs.ext4"
26+
}
27+
28+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/sh -x
2+
3+
dtb_file=""
4+
5+
while [ $# -gt 0 ]; do
6+
case "$1" in
7+
-d)
8+
# Check if the next argument exists and is not another flag
9+
if [ -n "$2" ] && [ "${2#-}" = "$2" ]; then
10+
dtb_file="$2"
11+
shift
12+
else
13+
echo "Error: Missing or invalid filename after -d flag"
14+
exit 1
15+
fi
16+
;;
17+
*)
18+
;;
19+
esac
20+
shift
21+
done
22+
23+
if [ -n "$dtb_file" ]; then
24+
echo "dtb file provided : $dtb_file"
25+
else
26+
echo "No dtb file provided with -d flag"
27+
exit 1
28+
fi
29+
30+
mkdir -p $TARGET_DIR/boot/dtb/ti
31+
mkdir -p $TARGET_DIR/lib/firmware/ti-connectivity
32+
33+
cp $BINARIES_DIR/Image $TARGET_DIR/boot
34+
cp $BINARIES_DIR/$dtb_file $TARGET_DIR/boot/dtb/ti
35+
mv $BINARIES_DIR/tiboot3-am62lx-hs-fs-evm.bin $BINARIES_DIR/tiboot3.bin
36+
cp $BUILD_DIR/ti-k3-boot-firmware-*/ti-connectivity/* $TARGET_DIR/lib/firmware/ti-connectivity/

board/ti/am62lx-evm/readme.txt

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Texas Instuments SK-AM62L Test and Development Board
2+
3+
Description
4+
===========
5+
6+
This configuration will build a complete image for the TI SK-AM62L
7+
board using TI sources: https://www.ti.com/tool/TMDS62LEVM.
8+
9+
How to Build
10+
============
11+
12+
Select the default configuration for the target:
13+
14+
For non-RT linux build
15+
$ make ti_release_am62lx_evm_defconfig
16+
17+
For RT linux build
18+
$ make ti_release_am62lx_evm_rt_defconfig
19+
20+
Optional: modify the configuration:
21+
22+
$ make menuconfig
23+
24+
IMPORTANT: make sure to use the tiboot3 firmware that match with the TI
25+
K3 SoC boot ROM (tiboot3-am62lx-hs-fs-evm.bin) used on the board.
26+
27+
Build:
28+
29+
$ make
30+
31+
To copy the resultimg output image file to an SD card use dd:
32+
33+
$ dd if=output/images/sdcard.img of=/dev/sdX bs=1M
34+
35+
How to Run
36+
==========
37+
38+
Insert the SD card into the SK-AM62L board, and power it up through the
39+
USB Type-C connector. The system should come up. You can use a
40+
micro-USB cable to connect to the connector labeled UART to
41+
communicate with the board.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROPBEAR_ARGS="-B"
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/bin/sh
2+
#
3+
# Start weston
4+
#
5+
6+
start() {
7+
# Check if /tmp/wayland exists; if not, create it
8+
if [ ! -d /tmp/wayland ]; then
9+
mkdir -p /tmp/wayland
10+
chmod 0700 /tmp/wayland
11+
fi
12+
13+
# Set XDG_RUNTIME_DIR environment variable
14+
export XDG_RUNTIME_DIR=/tmp/wayland
15+
16+
# Start Weston
17+
printf "Starting weston: "
18+
/usr/bin/weston > /var/log/weston.log 2>&1 &
19+
# Wait for a short time and check if Weston is running
20+
sleep 1
21+
if pidof weston > /dev/null; then
22+
echo "OK"
23+
else
24+
echo "FAIL"
25+
fi
26+
}
27+
28+
stop() {
29+
printf "Stopping weston: "
30+
killall weston > /dev/null 2>&1
31+
# Wait for a short time and check if Weston is still running
32+
sleep 1
33+
if pidof weston > /dev/null; then
34+
echo "FAIL"
35+
else
36+
echo "OK"
37+
fi
38+
}
39+
40+
case "$1" in
41+
start)
42+
start
43+
;;
44+
stop)
45+
stop
46+
;;
47+
restart|reload)
48+
stop
49+
start
50+
;;
51+
*)
52+
echo "Usage: $0 {start|stop|restart}"
53+
exit 1
54+
esac
55+
56+
exit 0
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
auto lo
2+
iface lo inet loopback
3+
auto eth0
4+
iface eth0 inet dhcp
5+
auto eth1
6+
iface eth1 inet dhcp
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export XDG_RUNTIME_DIR=/tmp/wayland/
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# configuration file for Weston
2+
3+
[core]
4+
idle-time=0
5+
#modules=xwayland.so,cms-colord.so
6+
#shell=desktop-shell.so
7+
#gbm-format=xrgb2101010
8+
require-input=false
9+
10+
[shell]
11+
locking=false
12+
animation=zoom
13+
panel-position=top
14+
startup-animation=fade
15+
#background-image=/usr/share/backgrounds/gnome/Aqua.jpg
16+
#background-color=0xff002244
17+
#background-type=tile
18+
#clock-format=minutes
19+
#panel-color=0x90ff0000
20+
#locking=true
21+
#animation=zoom
22+
#startup-animation=fade
23+
#binding-modifier=ctrl
24+
#num-workspaces=6
25+
#cursor-theme=whiteglass
26+
#cursor-size=24
27+
28+
#lockscreen-icon=/usr/share/icons/gnome/256x256/actions/lock.png
29+
#lockscreen=/usr/share/backgrounds/gnome/Garden.jpg
30+
#homescreen=/usr/share/backgrounds/gnome/Blinds.jpg
31+
#animation=fade
32+
33+
#[launcher]
34+
#icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
35+
#path=/usr/bin/gnome-terminal
36+
37+
#[launcher]
38+
#icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
39+
#path=/usr/bin/weston-terminal
40+
41+
#[launcher]
42+
#icon=/usr/share/icons/hicolor/24x24/apps/google-chrome.png
43+
#path=/usr/bin/google-chrome
44+
45+
#[launcher]
46+
#icon=/usr/share/icons/gnome/24x24/apps/arts.png
47+
#path=/build/weston-0lEgCh/weston-1.11.0/weston-flower
48+
49+
#[input-method]
50+
#path=/usr/libexec/weston-keyboard
51+
52+
#[output]
53+
#name=LVDS1
54+
#mode=1680x1050
55+
#transform=90
56+
#icc_profile=/usr/share/color/icc/colord/Bluish.icc
57+
58+
#[output]
59+
#name=VGA1
60+
#mode=173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
61+
#transform=flipped
62+
63+
#[output]
64+
#name=X1
65+
#mode=1024x768
66+
#transform=flipped-90
67+
68+
#[libinput]
69+
#touchscreen_calibrator=true
70+
#enable_tap=true
71+
72+
#[touchpad]
73+
#constant_accel_factor = 50
74+
#min_accel_factor = 0.16
75+
#max_accel_factor = 1.0
76+
77+
[screen-share]
78+
command=/usr/bin/weston --backend=drm-backend.so --shell=fullscreen-shell.so --no-clients-resize
79+
80+
#[xwayland]
81+
#path=/usr/bin/Xwayland
82+
83+
#[autolaunch]
84+
# launch the calibrator on startup if a touchscreen is detected
85+
#path=/usr/bin/weston-launch-calibrator
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Locally computed
22
sha256 3a93cafbfd49f1bce19e97c4ad588d3db7b509be991e9c0d42b044baa0c69cbc arm-trusted-firmware-00f1ec6b8740ccd403e641131e294aabacf2a48b.tar.gz
33
sha256 b80e1869836242aba8d129e3194299834ab8037f144e7870939d44a290aa4ebe arm-trusted-firmware-58b25570c9ef91753b14c2103f45f4be9dddb696.tar.gz
4+
sha256 78a76e525867547402cfbda177320014da593881922f50c5ac6860a83ccd4bbc arm-trusted-firmware-5227171c079d0c7d22a6d37b5cec079c8c5bb4b1-git4.tar.gz

board/ti/common/patches/linux/linux.hash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ sha256 e8e7231fee863d95defcf0906985a768f975042ca46775845b6a1bca29b3ae1f linux-
1515
sha256 cf51b1d9538d0fa3f59a063ebde205ecea1f1b27f95cef219261b74790f070e6 linux-10.01.09-rt-git4.tar.gz
1616
sha256 6734162de255d177f3a8856b6bb9303a73e5e614eed36417d87977b5925f40b0 linux-10.01.10-git4.tar.gz
1717
sha256 e0e57f997c306dd95623da3c4ac1906a15d29e79f3533a12fffcf88425e3f29e linux-10.01.10-rt-git4.tar.gz
18+
sha256 c5f44a81ee8773ea927fd6a80f437ad0d80db0eb706d28da8507d846c26eaa9d linux-11.00.02-git4.tar.gz
19+
sha256 e7580450300177b4ceb938988957456cd7a0dd4e383803b52fd41d2e505781af linux-11.00.03-git4.tar.gz

0 commit comments

Comments
 (0)