flexbuild2108

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

flexbuild2108

Jump to solution
1,995 Views
dibyarekha
Contributor IV

I am using Ubuntu 22.04. I am trying to build the rootfs for ubuntu lite userland using flexbuilder .

It is building fine with default packages.

But I want to add some other packages like ppp, net-snmp-server etc. In which file I should add the package name such that I will able to get the packages for LS1043ARDB?

As per the user guide of LSDK2108, I trired to add the packages in extra packages list under <flexbuild>/configs/ubuntu/extra_packages_list

But I am not able to add , below warning messages are showing when I am trying to add

 (gedit:9681): dconf-WARNING **: 14:27:07.195: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:9681): dconf-WARNING **: 14:27:07.197: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:9681): dconf-WARNING **: 14:27:07.389: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:9681): dconf-WARNING **: 14:27:07.390: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

(gedit:9681): dconf-WARNING **: 14:27:07.390: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

** (gedit:9681): WARNING **: 14:34:34.390: Set document metadata failed: Setting attribute metadata::gedit-position not supported

(gedit:9681): dconf-WARNING **: 14:34:34.427: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)

 

Please help  me

Tags (1)
0 Kudos
Reply
1 Solution
1,762 Views
williawh
Contributor III

cd ~/flexbuild_lsdk2108_github/configs/ubuntu

vi extra_packages_list

search for extra_main_packages_list

add ppp snmpd snmp libsnmp-dev at the end

extra_main_packages_list=" \
apt apt-utils git gcc vim wget make build-essential u-boot-tools zip bc
device-tree-compiler python3 python3-dev python3-numpy ethtool libxml2-dev
libsensors4-dev libedit-dev liblzma-dev binutils-dev autoconf automake
dh-autoreconf libnuma-dev libpcap-dev qemu-kvm bridge-utils libtool bison
libncurses5-dev libelf-dev curl flex ftp openssh-server openssh-client
autotools-dev tcpdump vlan linux-tools-generic strace debootstrap mdadm
sysstat rdate initramfs-tools mtd-utils dosfstools pciutils net-tools
iputils-ping hdparm psmisc keyutils efibootmgr software-properties-common
libssl-dev ca-certificates libnl-genl-3-dev libreadline-dev libffi-dev
libudev-dev libinput-dev libpixman-1-dev libxkbcommon-dev libpng-dev
libcairo2-dev libpam0g-dev lsb-release kexec-tools iptables rsync lvm2
liblua5.3-dev parted strongswan dmidecode libsystemd-dev util-linux cmake
libxcb-composite0-dev libxcursor-dev libtinfo-dev libvirt-daemon-system
libvirt0 ifenslave lshw ppp snmpd snmp libsnmp-dev


flex-builder -i clean-rfs
flex-builder -i mkrfs -m ls1046afrwy -F (i am building for my machine ls1046afrwy)

I had to do the following for some reason to get it to build for some reason...
('-F' option can force build the target userland from scratch regardless of the
FETCH_PREBUILT_LSDK_RFS=y configured in configs/sdk.yml)


~/flexbuild_lsdk2108_github# flex-builder -i mkrfs -m ls1046afrwy -F
MACHINE: ls1046afrwy
generating /home/openwrt/Devel/flexbuild_lsdk2108_github/build/rfs/rootfs_lsdk2108_ubuntu_main_arm64 ...
extra packages list: /home/openwrt/Devel/flexbuild_lsdk2108_github/configs/ubuntu/extra_packages_list
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id F6ECB3762474EDA9D21B7022871920D1991BC93C)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://ports.ubuntu.com/ubuntu-ports...
.

See if this works for you...

Reference: Layerscape Software Development Kit User Guide, Rev. 21.08, 05 September 2022

See 4.3.13
How to build various userland with custom packages

View solution in original post

11 Replies
1,838 Views
williawh
Contributor III

https://www.slideshare.net/antonywcl/open-wrt

This may help you with adding packages. I have not done so yet. It starts on slide 8

"Create OpenWRT Package"

There are a lot of adds but you can skip them. You do not have to download it.

Hope this helps.

William

0 Kudos
Reply
1,841 Views
williawh
Contributor III

hey @dibyarekha I owe you a bigly apology. I got my head stuck so far up openwrt and trying to build a FIT image of openwrt that I totally gave you answers using openwrt build system. Not flexbuilder.

I do recommend you using Ubuntu 20.4 though and see if all your compile errors go away. 

Really sorry,

William

0 Kudos
Reply
1,846 Views
williawh
Contributor III

One more thing...

I tried Ubuntu 22.04 and just gave up on it. To many build errors... Especially cant find pip

I have seen posts where Ubuntu 20.4 is recommended and that is what I use.
And the packages required are below.

DO NOT INSTALL python3 stuff in BOLD!!! Don't need it. My system is building just fine without it.

https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem
Older advice:

sudo apt update
sudo apt install build-essential ccache ecj fastjar file g++ gawk \
gettext git java-propose-classpath libelf-dev libncurses5-dev \
libncursesw5-dev libssl-dev python python2.7-dev python3 unzip wget \
python3-distutils python3-setuptools python3-dev rsync subversion \
swig time xsltproc zlib1g-dev

0 Kudos
Reply
1,810 Views
dibyarekha
Contributor IV
I installed ubuntu20.04 and successfully built LSDK for LS1043ardb.
Now I want to add some packages like ppp and net-snmp-server. How can I do that? Please guide me.
1,763 Views
williawh
Contributor III

cd ~/flexbuild_lsdk2108_github/configs/ubuntu

vi extra_packages_list

search for extra_main_packages_list

add ppp snmpd snmp libsnmp-dev at the end

extra_main_packages_list=" \
apt apt-utils git gcc vim wget make build-essential u-boot-tools zip bc
device-tree-compiler python3 python3-dev python3-numpy ethtool libxml2-dev
libsensors4-dev libedit-dev liblzma-dev binutils-dev autoconf automake
dh-autoreconf libnuma-dev libpcap-dev qemu-kvm bridge-utils libtool bison
libncurses5-dev libelf-dev curl flex ftp openssh-server openssh-client
autotools-dev tcpdump vlan linux-tools-generic strace debootstrap mdadm
sysstat rdate initramfs-tools mtd-utils dosfstools pciutils net-tools
iputils-ping hdparm psmisc keyutils efibootmgr software-properties-common
libssl-dev ca-certificates libnl-genl-3-dev libreadline-dev libffi-dev
libudev-dev libinput-dev libpixman-1-dev libxkbcommon-dev libpng-dev
libcairo2-dev libpam0g-dev lsb-release kexec-tools iptables rsync lvm2
liblua5.3-dev parted strongswan dmidecode libsystemd-dev util-linux cmake
libxcb-composite0-dev libxcursor-dev libtinfo-dev libvirt-daemon-system
libvirt0 ifenslave lshw ppp snmpd snmp libsnmp-dev


flex-builder -i clean-rfs
flex-builder -i mkrfs -m ls1046afrwy -F (i am building for my machine ls1046afrwy)

I had to do the following for some reason to get it to build for some reason...
('-F' option can force build the target userland from scratch regardless of the
FETCH_PREBUILT_LSDK_RFS=y configured in configs/sdk.yml)


~/flexbuild_lsdk2108_github# flex-builder -i mkrfs -m ls1046afrwy -F
MACHINE: ls1046afrwy
generating /home/openwrt/Devel/flexbuild_lsdk2108_github/build/rfs/rootfs_lsdk2108_ubuntu_main_arm64 ...
extra packages list: /home/openwrt/Devel/flexbuild_lsdk2108_github/configs/ubuntu/extra_packages_list
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id F6ECB3762474EDA9D21B7022871920D1991BC93C)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://ports.ubuntu.com/ubuntu-ports...
.

See if this works for you...

Reference: Layerscape Software Development Kit User Guide, Rev. 21.08, 05 September 2022

See 4.3.13
How to build various userland with custom packages

1,751 Views
dibyarekha
Contributor IV
Thanks for your response. I got it. Thank you so much
1,821 Views
dibyarekha
Contributor IV

Thanks for this guidance, I will try using Ubuntu20.04 as per the guide

1,981 Views
williawh
Contributor III

I assume you are selecting target ls1043a-rdb default or SD card boot

I assume that you have done:

./scripts/feeds update -a
./scripts/feeds install -a

Do this:

./scripts/feeds update luci
./scripts/feeds install -a -p luci

./scripts/feeds update ppp
./scripts/feeds install -a -p ppp

./scripts/feeds update net-snmp-server
./scripts/feeds install -a -p net-snmp-server

make menuconfig

Scroll down to select: LuCI --->
Protocols:
< > luci-proto-ppp.......................... Support for PPP/PPPoE/PPPoA/PPtP
Applications:
< > luci-app-snmpd................................... Net-SNMP LuCI interface

Select them with a "y" it will put an *

0 Kudos
Reply
1,859 Views
dibyarekha
Contributor IV
I am using LS1043ARDB as target.
I have not done these
./scripts/feeds update -a
./scripts/feeds install -a
I don't have this scripts file
where should I get this?
0 Kudos
Reply
1,853 Views
williawh
Contributor III
0 Kudos
Reply
1,854 Views
williawh
Contributor III

In your openwrt directory, Just enter them on the command line:

root@osboxes:/home/openwrt/Devel/openwrt-22.03# ./scripts/feeds update -a

0 Kudos
Reply