ravelo
March 28, 2020, 11:37am
41
ok, I did this…
dd bs=1M of=`ls /dev/mmcblk?boot0 | head -c12` if=/home/VIM1_Debian-server-buster_Linux-5.5-rc2_arm64_SD-USB_V0.8.3-20200327.img
sync
sudo halt
remove the TF card
then press reset btn and see VIM1 boot docker fenix built manline uboot, mainline 5.5-rc2, and debian buster lite !!
..
[ 7.095299] Bluetooth: BNEP socket layer initialized
[ 7.133854] Bluetooth: hci1: BCM4345C0 (003.001.025) build 0075
[ 8.236651] meson8b-dwmac c9410000.ethernet eth0: PHY [0.e40908ff:08] driver [Meson GXL Internal ]
[ 8.254281] meson8b-dwmac c9410000.ethernet eth0: No Safety Features support found
[ 8.256235] meson8b-dwmac c9410000.ethernet eth0: PTP not supported by HW
[ 8.265118] meson8b-dwmac c9410000.ethernet eth0: configuring for phy/rmii link mode
[ 9.852393] meson8b-dwmac c9410000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
[ 9.855481] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Debian GNU/Linux 10 Khadas ttyAML0
Khadas login: khadas
Password:
Last login: Sat Mar 28 12:31:36 CET 2020 on ttyAML0
Welcome to Fenix 0.8.3 Debian GNU/Linux 10 (buster) Linux 5.5.0-rc2
_ ___ _ __ _____ __ __ _
| |/ / |__ __ _ __| | __ _ ___ \ \ / /_ _| \/ / |
| ' /| '_ \ / _` |/ _` |/ _` / __| \ \ / / | || |\/| | |
| . \| | | | (_| | (_| | (_| \__ \ \ V / | || | | | |
|_|\_\_| |_|\__,_|\__,_|\__,_|___/ \_/ |___|_| |_|_|
* Website: https://www.khadas.com
* Documentation: https://docs.khadas.com
* Forum: https://forum.khadas.com
khadas@Khadas:~$
Now, let’s see how to inject chewitt’s 5.6-rc7 into this build method…
1 Like
ravelo
March 28, 2020, 12:15pm
42
@hyphop , could you help us to upgrade just the kernel to a more recent one ? (like 5.5.13 or 5.6-rc y)
hyphop
March 28, 2020, 12:18pm
43
Sure it easy I can write how to tomorrow today I’m tired
1 Like
ravelo
May 20, 2020, 5:20pm
44
here I am again, trying with the up-to-date fenix 0.8.4 and docker 20.02 to rebuild debian buster & hoping that the mainline kernel will be a decently recent one (visibly 5.6.0) …
the bad news is, fenix and docker failed miserably with the following error message:
Processing triggers for man-db (2.8.5-2) ...
Info: Installing libglvnd-core-dev_1.3.0-2_arm64.deb in chroot...
Selecting previously unselected package libglvnd-core-dev:arm64.
(Reading database ... 66948 files and directories currently installed.)
Preparing to unpack .../libglvnd-core-dev_1.3.0-2_arm64.deb ...
Unpacking libglvnd-core-dev:arm64 (1.3.0-2) ...
dpkg: dependency problems prevent configuration of libglvnd-core-dev:arm64:
libglvnd-core-dev:arm64 depends on libglvnd-dev; however:
Package libglvnd-dev is not installed.
dpkg: error processing package libglvnd-core-dev:arm64 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libglvnd-core-dev:arm64
Cleanup...
Makefile:7: recipe for target 'all' failed
make: *** [all] Error 1
khadas@d87548753ac3:~/fenix$
dear @numbqq please tell if docker in this fenix version is fully working for the firmware I want to build, and under which conditions ?
thank you
Frank
May 21, 2020, 1:18am
47
@ravelo Maybe you can build again ? I had build yestarday . It can be build .
1 Like
ravelo
May 21, 2020, 10:40pm
48
I did rebuild today,
still same failure and error.
Frank
May 22, 2020, 1:01am
49
@ravelo I will try again today . Can you show me you choices with env/setenv.sh
ravelo
May 22, 2020, 3:04pm
50
dear Franck, here they are:
#VERSION: 0.8.4
#KHADAS_BOARD=VIM1
#VENDOR=Amlogic
#CHIP=S905X
#LINUX=mainline
#UBOOT=mainline
#DISTRIBUTION=Debian
#DISTRIB_RELEASE=buster
#DISTRIB_TYPE=server
#DISTRIB_ARCH=arm64
#INSTALL_TYPE=SD-USB
===========================================
ravelo
May 22, 2020, 3:24pm
51
and here a remore details on the error and on my build system…
Info: Installing libglvnd-core-dev_1.3.0-2_arm64.deb in chroot...
Selecting previously unselected package libglvnd-core-dev:arm64.
(Reading database ... 66948 files and directories currently installed.)
Preparing to unpack .../libglvnd-core-dev_1.3.0-2_arm64.deb ...
Unpacking libglvnd-core-dev:arm64 (1.3.0-2) ...
dpkg: dependency problems prevent configuration of libglvnd-core-dev:arm64:
libglvnd-core-dev:arm64 depends on libglvnd-dev; however:
Package libglvnd-dev is not installed.
dpkg: error processing package libglvnd-core-dev:arm64 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libglvnd-core-dev:arm64
Cleanup...
make: *** [Makefile:7: all] Error 1
khadas@7c841c964fc6:~/fenix$ uname -a
Linux 7c841c964fc6 5.6.14-050614-generic #202005200733 SMP Wed May 20 07:38:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
khadas@7c841c964fc6:~/fenix$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
khadas@7c841c964fc6:~/fenix$
khadas@7c841c964fc6:~/fenix$ exit
exit
raxy@raxy-HP-ED-800-G1:~/Documents/fenix$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
Frank
May 23, 2020, 6:48am
52
@ravelo
diff --git a/config/boards/VIM1.conf b/config/boards/VIM1.conf
index 5e5ef14..69a50d5 100644
--- a/config/boards/VIM1.conf
+++ b/config/boards/VIM1.conf
@@ -188,7 +188,7 @@ install_deb_packages_platform() {
install_deb_chroot $BUILD_DEBS/$VERSION/$KHADAS_BOARD/${DISTRIBUTION}-${DISTRIB_RELEASE}/libcec/cec-utils_*.deb
fi
- if [ "$LINUX" == "mainline" ] && [ "$DISTRIB_RELEASE" == "buster" ]; then
+ if [ "$LINUX" == "mainline" ] && [ "$DISTRIB_RELEASE" == "buster" ] && ["$DISTRIB_TYPE" != "server"]; then
# Install mesa in chroot
info_msg "Installing mesa..."
And try to rebuild .
1 Like
ravelo
May 23, 2020, 6:56am
53
ok, i read in your suggestion that I should modify fenix to exclude the installation of mesa in my case, i will try that, thanks…
ravelo
May 23, 2020, 10:53am
54
good news @Frank
it ended as expected: with success as we see in the logs…
Info: IMAGE: /home/khadas/fenix/build/images/VIM1_Debian-server-buster_Linux-5.6_arm64_SD-USB_V0.8.4-20200523.img is ready!
Cleanup...
Done.
Sat 23 May 2020 12:51:02 PM CEST
Time elapsed: 11 minute(s).
khadas@7c841c964fc6:~/fenix$
now let’s proceed with its deployment, the @hyphop way…
1 Like
ravelo
May 23, 2020, 11:29am
55
hooray !!!
the magic dd command from hyphop did the trick and the img file did install into the EMMC, and booted ok, thanks @Frank and @hyphop
[ 6.326483] zram4: detected capacity change from 0 to 245571584
[ 6.372302] Adding 239812k swap on /dev/zram4. Priority:5 extents:1 across:S
[ 6.764263] EXT4-fs (mmcblk1p2): resizing filesystem from 668672 to 3713252 s
[ 17.489318] EXT4-fs (mmcblk1p2): resized to 2097152 blocks
[ 28.864727] EXT4-fs (mmcblk1p2): resized to 3670016 blocks
[ 29.779149] EXT4-fs (mmcblk1p2): resized filesystem to 3713252
Debian GNU/Linux 10 Khadas ttyAML0
Khadas login: khadas
Password: [ 47.620252] rc rc0: two consecutive events of type space
Welcome to Fenix 0.8.4 Debian GNU/Linux 10 (buster) Linux 5.6.0
_ ___ _ __ _____ __ __ _
| |/ / |__ __ _ __| | __ _ ___ \ \ / /_ _| \/ / |
| ' /| '_ \ / _` |/ _` |/ _` / __| \ \ / / | || |\/| | |
| . \| | | | (_| | (_| | (_| \__ \ \ V / | || | | | |
|_|\_\_| |_|\__,_|\__,_|\__,_|___/ \_/ |___|_| |_|_|
* Website: https://www.khadas.com
* Documentation: https://docs.khadas.com
* Forum: https://forum.khadas.com
khadas@Khadas:~$ uname -a
Linux Khadas 5.6.0 #0.8.4 SMP Thu May 21 23:52:06 CEST 2020 aarch64 GNU/Linux
khadas@Khadas:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
khadas@Khadas:~$
2 Likes
ravelo
June 7, 2020, 3:25pm
56
I’ve tested fenix 0.91 in docker, it is working fine to produce debian buster server mainline uboot mainline 5.7.y kernel; see it cold boot for the 1st time from EMMC on my vim1…
…
[ 6.390708] Adding 239736k swap on /dev/zram4. Priority:5 extents:1 across:239736k SSFS
[ 6.538544] EXT4-fs (mmcblk1p2): resizing filesystem from 669696 to 3713252 blocks
[ 17.378492] EXT4-fs (mmcblk1p2): resized to 2097152 blocks
[ 29.755606] EXT4-fs (mmcblk1p2): resized to 3670016 blocks
[ 29.853173] EXT4-fs (mmcblk1p2): resized filesystem to 3713252
Debian GNU/Linux 10 Khadas ttyAML0
Khadas login: khadas
Password:
Welcome to Fenix 0.9.1 Debian GNU/Linux 10 (buster) Linux 5.7.0
_ ___ _ __ _____ __ __ _
| |/ / |__ __ _ __| | __ _ ___ \ \ / /_ _| \/ / |
| ' /| '_ \ / _` |/ _` |/ _` / __| \ \ / / | || |\/| | |
| . \| | | | (_| | (_| | (_| \__ \ \ V / | || | | | |
|_|\_\_| |_|\__,_|\__,_|\__,_|___/ \_/ |___|_| |_|_|
* Website: https://www.khadas.com
* Documentation: https://docs.khadas.com
* Forum: https://forum.khadas.com
khadas@Khadas:~$ uname -a
Linux Khadas 5.7.0 #0.9.1 SMP Sun Jun 7 16:30:43 CEST 2020 aarch64 GNU/Linux
khadas@Khadas:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
Bravo fenix team!
2 Likes
by Fenix team you mean Khadas team, right !
ravelo
June 7, 2020, 4:25pm
58
not everyone in khadas is contributing to fenix software, so I keep saying fenix team !
OK, Then fenix team is hyphop, numbqq, and frank,