# openwrt build on raspberry pi4

**URL:** https://community.morsemicro.com/t/openwrt-build-on-raspberry-pi4/165
**Category:** General
**Created:** [November 22, 2024, 10:37am UTC](https://community.morsemicro.com/t/openwrt-build-on-raspberry-pi4/165 "2024-11-22T10:37:19Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![iwashita](https://avatars.discourse-cdn.com/v4/letter/i/9f8e36/32.png) [@iwashita](https://community.morsemicro.com/u/iwashita)
#### Post date: [November 22, 2024, 10:37am UTC](https://community.morsemicro.com/t/openwrt-build-on-raspberry-pi4/165/1 "2024-11-22T10:37:19Z")

</div>

I cloned [GitHub - MorseMicro/openwrt](https://github.com/MorseMicro/openwrt.git) and ran the make command to create the image file.

When I booted up on the Raspberry Pi 4, the LuCI interface did not appear.

What is the problem?

---

<div class="post-metadata">

### Author: ![ajudge](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@ajudge](https://community.morsemicro.com/u/ajudge)
#### Post date: [November 22, 2024, 10:46am UTC](https://community.morsemicro.com/t/openwrt-build-on-raspberry-pi4/165/2 "2024-11-22T10:46:36Z")

</div>

Hi @iwashita

Do you mean to say the LuCI web interface doesn’t show when navigating to 10.42.0.1 from your web browser?

The default configuration of the EKH01 image should provide a DHCP server. So a laptop or PC connected directly the the ethernet port should receive an IP address in the 10.42.0.0/24 subnet. Simply navigating to 10.42.0.1 from the laptop or PC should show the web interface!

---

<div class="post-metadata">

### Author: ![iwashita](https://avatars.discourse-cdn.com/v4/letter/i/9f8e36/32.png) [@iwashita](https://community.morsemicro.com/u/iwashita)
#### Post date: [November 25, 2024, 6:28am UTC](https://community.morsemicro.com/t/openwrt-build-on-raspberry-pi4/165/3 "2024-11-25T06:28:54Z")

</div>

Hi ajudge.

Yes. This error occur “The response time from 10.42.0.1 is too long.”

my ubuntu 24.04.1.  
Therefore, Install build environment packages with

> sudo apt install build-essential clang flex bison g++ gawk   
> gcc-multilib g+±multilib gettext git libncurses5-dev libssl-dev   
> python3-setuptools rsync swig unzip zlib1g-dev file wget

Do you see what the problem is?

---

<div class="post-metadata">

### Author: ![ajudge](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@ajudge](https://community.morsemicro.com/u/ajudge)
#### Post date: [November 26, 2024, 5:04am UTC](https://community.morsemicro.com/t/openwrt-build-on-raspberry-pi4/165/4 "2024-11-26T05:04:13Z")

</div>

I will definitely need more information before I can safely claim to know what the problem would be!

Can you send the output of the following commands run on your ubuntu machine with the EKH01 attached, after a few minutes of it being plugged in?

- `ifconfig`
- `ip route show`
- `ping 10.42.0.1`

Also, if you plug a [USB null modem cable](https://au.element14.com/ftdi/usb-nmc-2-5m/cable-usb-usb-nmc-ft232r/dp/2419947) between the EKH01 and your PC, you should be able to interact with the EKH01 via a serial console. This will allow you to capture logs to help us debug why you might not be able to connect to it.

---

<div class="post-metadata">

### Author: ![iwashita](https://avatars.discourse-cdn.com/v4/letter/i/9f8e36/32.png) [@iwashita](https://community.morsemicro.com/u/iwashita)
#### Post date: [December 3, 2024, 4:49am UTC](https://community.morsemicro.com/t/openwrt-build-on-raspberry-pi4/165/5 "2024-12-03T04:49:33Z")

</div>

It is possible that the OS is not up and running.

I made the image file again.  
I followed these steps to create an image file.

```auto
git clone -b mm/v23.05.3 https://github.com/MorseMicro/openwrt.git

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

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

./scripts/morse_setup.sh -i -b ekh01

make -j1 V=s

```

The following error occurred

 ![スクリーンショット 2024-12-03 134301](https://us1.discourse-cdn.com/flex001/uploads/morsemicro/original/1X/318825b1d2b78d76751114943aab067e873468bd.png)

How should I deal with this?

---

<div class="post-metadata">

### Author: ![ajudge](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@ajudge](https://community.morsemicro.com/u/ajudge)
#### Post date: [December 3, 2024, 5:56am UTC](https://community.morsemicro.com/t/openwrt-build-on-raspberry-pi4/165/6 "2024-12-03T05:56:08Z")

</div>

What is the version of your system python, ie `python3 --version`?

To keep things simple, I would probably just remove the wireshark package from the build. `make menuconfig` and then in `Utilities` disable Wireshark3. It is not a critical utility for operation of the EVK.

The issue looks like it may be caused by a character in the path for the Wireshark CMakeLists being inappropriately escaped. See [Configure build fails in paths with spaces: extra escapes with python path to native (#17487) · Issues · Wireshark Foundation / Wireshark · GitLab](https://gitlab.com/wireshark/wireshark/-/issues/17487)  
So other solutions may include moving the project to a simpler folder path, or updating the Wireshark package to a version which has fixed this compilation issue.

---

<div class="post-metadata">

### Author: ![iwashita](https://avatars.discourse-cdn.com/v4/letter/i/9f8e36/32.png) [@iwashita](https://community.morsemicro.com/u/iwashita)
#### Post date: [December 3, 2024, 7:39am UTC](https://community.morsemicro.com/t/openwrt-build-on-raspberry-pi4/165/7 "2024-12-03T07:39:08Z")

</div>

python version is 3.12.3

wireshark error is resolved.

new error is occured

```auto
SHELL= flock /home/iwashitakirio/morsemicro/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/iwashitakirio/morsemicro/openwrt/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/packages/.pkgdir/kmod-video-codec-bcm2835/. /home/iwashitakirio/morsemicro/openwrt/staging_dir/target-aarch64_cortex-a72_musl/root-bcm27xx/'
touch /home/iwashitakirio/morsemicro/openwrt/staging_dir/target-aarch64_cortex-a72_musl/root-bcm27xx/stamp/.kmod-video-codec-bcm2835_installed
echo "kmod-video-codec-bcm2835" >> /home/iwashitakirio/morsemicro/openwrt/staging_dir/target-aarch64_cortex-a72_musl/pkginfo/linux.default.install
make[3]: Leaving directory '/home/iwashitakirio/morsemicro/openwrt/package/kernel/linux'
time: package/kernel/linux/compile#4.95#0.56#8.91
make[2]: Leaving directory '/home/iwashitakirio/morsemicro/openwrt'
make[1]: *** [package/Makefile:123: /home/iwashitakirio/morsemicro/openwrt/staging_dir/target-aarch64_cortex-a72_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/iwashitakirio/morsemicro/openwrt'
make: *** [/home/iwashitakirio/morsemicro/openwrt/include/toplevel.mk:232: world] Error 2

```

---

<div class="post-metadata">

### Author: ![ajudge](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@ajudge](https://community.morsemicro.com/u/ajudge)
#### Post date: [December 3, 2024, 11:47am UTC](https://community.morsemicro.com/t/openwrt-build-on-raspberry-pi4/165/8 "2024-12-03T11:47:03Z")

</div>

Unfortunately this error just indicates an error occurred earlier in the log.

Please run with `make -j1 V=s 2>&1 | tee log.txt` and attach the resulting log.txt to the thread.

---

<div class="post-metadata">

### Author: ![iwashita](https://avatars.discourse-cdn.com/v4/letter/i/9f8e36/32.png) [@iwashita](https://community.morsemicro.com/u/iwashita)
#### Post date: [January 27, 2025, 1:01am UTC](https://community.morsemicro.com/t/openwrt-build-on-raspberry-pi4/165/9 "2025-01-27T01:01:44Z")

</div>

I confirmed yesterday that it can work.  
Thank you very much for your advice.
