SF19A2890 commit, possible new devices

set up board 
rm: cannot remove 'bin/targets/siflower/openwrt-siflower-sf19a28-fullmask-squashfs-sysupgrade.bin': No such file or directory
build release
fatal: Invalid revision range de2383bd961783ed3d94f931211b6d1b8878d780..HEAD
...

In looking at the make.sh --->https://github.com/BPI-SINOVOIP/BPI-WiFi5-Siflower/blob/main/openwrt-18.06/make.sh\

it would seem, perhaps a 2 argument is required

possibly something like ..

./make.sh bpi_luci2 < auto || flash || rel > 

so perhaps 

./make.sh bpi_luci2 rel
or
./make.sh bpi_luci2 auto 
..etc

EDIT
lines 1 -70ish pertain to the error

fatal: Invalid revision range de2383bd961783ed3d94f931211b6d1b8878d780..HEAD

Thats all I can offer from a glance. Good luck

1 Like

So the previous errors were caused by a full disk. I just didn't realize it for a few hours.
I added more disk space to the VM and tried again. Now I get these different errors:

a28_bpi_luci2:

openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld generated: undefined reference to `CRYPTO_strdup'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld generated: undefined reference to `CRYPTO_free'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld generated: undefined reference to `CRYPTO_malloc'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld generated: undefined reference to `OpenSSLDie'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld generated: undefined reference to `OPENSSL_cleanse'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld generated: undefined reference to `CRYPTO_realloc'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld generated: undefined reference to `CRYPTO_mem_ctrl'
collect2: error: ld returned 1 exit status
../Makefile.shared:170: recipe for target 'link_app.gnu' failed
make[6]: *** [link_app.gnu] Error 1
make[6]: Leaving directory '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/build_dir/target-mipsel_mips-interAptiv_musl/openssl-1.0.2p/apps'
Makefile:156: recipe for target 'openssl' failed
make[5]: *** [openssl] Error 2
make[5]: Leaving directory '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/build_dir/target-mipsel_mips-interAptiv_musl/openssl-1.0.2p/apps'
Makefile:293: recipe for target 'build_apps' failed
make[4]: *** [build_apps] Error 1
make[4]: Leaving directory '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/build_dir/target-mipsel_mips-interAptiv_musl/openssl-1.0.2p'
Makefile:269: recipe for target '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/build_dir/target-mipsel_mips-interAptiv_musl/openssl-1.0.2p/.built' failed
make[3]: *** [/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/build_dir/target-mipsel_mips-interAptiv_musl/openssl-1.0.2p/.built] Error 2
make[3]: Leaving directory '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/package/libs/openssl'
time: package/libs/openssl/compile#0.40#0.11#0.55
package/Makefile:120: recipe for target 'package/libs/openssl/compile' failed
make[2]: *** [package/libs/openssl/compile] Error 2
make[2]: Leaving directory '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06'
package/Makefile:116: recipe for target '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/target-mipsel_mips-interAptiv_musl/stamp/.package_compile' failed
make[1]: *** [/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/target-mipsel_mips-interAptiv_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2
build fail, don't get target_bin
build end

a28_bpi_luci2_neutral:

7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: ../libssl.so: undefined reference to `OPENSSL_DIR_read'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: ../libssl.so: undefined reference to `CRYPTO_get_ex_data'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: ../libcrypto.so: undefined reference to `CRYPTO_pop_info'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: ../libssl.so: undefined reference to `CRYPTO_get_ex_new_index'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: ../libcrypto.so: undefined reference to `CRYPTO_free_locked'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: ../libssl.so: undefined reference to `CRYPTO_dup_ex_data'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: ../libssl.so: undefined reference to `CRYPTO_lock'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: ../libcrypto.so: undefined reference to `CRYPTO_get_add_lock_callback'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld generated: undefined reference to `CRYPTO_strdup'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld generated: undefined reference to `CRYPTO_free'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld generated: undefined reference to `CRYPTO_malloc'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld generated: undefined reference to `OpenSSLDie'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld generated: undefined reference to `OPENSSL_cleanse'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld generated: undefined reference to `CRYPTO_realloc'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/toolchain-mipsel_mips-interAptiv_gcc-7.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/7.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld generated: undefined reference to `CRYPTO_mem_ctrl'
collect2: error: ld returned 1 exit status
../Makefile.shared:170: recipe for target 'link_app.gnu' failed
make[6]: *** [link_app.gnu] Error 1
make[6]: Leaving directory '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/build_dir/target-mipsel_mips-interAptiv_musl/openssl-1.0.2p/apps'
Makefile:156: recipe for target 'openssl' failed
make[5]: *** [openssl] Error 2
make[5]: Leaving directory '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/build_dir/target-mipsel_mips-interAptiv_musl/openssl-1.0.2p/apps'
Makefile:293: recipe for target 'build_apps' failed
make[4]: *** [build_apps] Error 1
make[4]: Leaving directory '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/build_dir/target-mipsel_mips-interAptiv_musl/openssl-1.0.2p'
Makefile:269: recipe for target '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/build_dir/target-mipsel_mips-interAptiv_musl/openssl-1.0.2p/.built' failed
make[3]: *** [/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/build_dir/target-mipsel_mips-interAptiv_musl/openssl-1.0.2p/.built] Error 2
make[3]: Leaving directory '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/package/libs/openssl'
time: package/libs/openssl/compile#0.42#0.10#0.55
package/Makefile:120: recipe for target 'package/libs/openssl/compile' failed
make[2]: *** [package/libs/openssl/compile] Error 2
make[2]: Leaving directory '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06'
package/Makefile:116: recipe for target '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/target-mipsel_mips-interAptiv_musl/stamp/.package_compile' failed
make[1]: *** [/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/staging_dir/target-mipsel_mips-interAptiv_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/user1/BPI-WiFi5-Siflower/openwrt-18.06'
/home/user1/BPI-WiFi5-Siflower/openwrt-18.06/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2
build fail, don't get target_bin
build end

I will take a look again tomorrow.

1 Like

So if I apply this diff:

diff --git a/openwrt-18.06/target/linux/siflower/sf19a28_bpi_luci2_fullmask_def.config b/openwrt-18.06/target/linux/siflower/sf19a28_bpi_luci2_fullmask_def.config
index 294719343..8cc331359 100644
--- a/openwrt-18.06/target/linux/siflower/sf19a28_bpi_luci2_fullmask_def.config
+++ b/openwrt-18.06/target/linux/siflower/sf19a28_bpi_luci2_fullmask_def.config
@@ -67,7 +67,7 @@ CONFIG_TARGET_BOARD="siflower"
 CONFIG_TARGET_PROFILE="SF19A28-AC28S"
 CONFIG_TARGET_ARCH_PACKAGES="mips_siflower"
 CONFIG_DEFAULT_TARGET_OPTIMIZATION="-Os -pipe -mno-branch-likely"
-CONFIG_CPU_TYPE="mips-interAptiv"
+CONFIG_CPU_TYPE="24kc+24kf"
 CONFIG_LINUX_4_14=y
 CONFIG_DEFAULT_badblocks=y
 CONFIG_DEFAULT_base-files=y

Then "./make.sh a28_bpi_luci2" successfully ends with file:

6.6M openwrt1806_main_a28_bpi_luci2_sf19a28_fullmask_rel_v1.0.0.bin

So it seems the toolchain is break somewhere with the mips-interAptiv cpu setting. Any reason the cpu type is different for a28_bpi versus a28_bpi_luci2?
a28_bpi is 24kc+24kf and a28_bpi_luci2 is mips-interAptiv.

This also works, builds successfully:

diff --git a/openwrt-18.06/target/linux/siflower/sf19a28_bpi_luci2_fullmask_def.config b/openwrt-18.06/target/linux/siflower/sf19a28_bpi_luci2_fullmask_def.config
index 294719343..3e606f008 100644
--- a/openwrt-18.06/target/linux/siflower/sf19a28_bpi_luci2_fullmask_def.config
+++ b/openwrt-18.06/target/linux/siflower/sf19a28_bpi_luci2_fullmask_def.config
@@ -67,7 +67,7 @@ CONFIG_TARGET_BOARD="siflower"
 CONFIG_TARGET_PROFILE="SF19A28-AC28S"
 CONFIG_TARGET_ARCH_PACKAGES="mips_siflower"
 CONFIG_DEFAULT_TARGET_OPTIMIZATION="-Os -pipe -mno-branch-likely"
-CONFIG_CPU_TYPE="mips-interAptiv"
+CONFIG_CPU_TYPE="interAptiv"
 CONFIG_LINUX_4_14=y
 CONFIG_DEFAULT_badblocks=y
 CONFIG_DEFAULT_base-files=y

Seems "mips-interAptiv" is not valid for gcc, but "interaptiv" is ok.

so the bpi-wifi5 builds. :slight_smile:

2 Likes

Have you cracked open the housing or shall I open mine so we can hunt down the serial connection?

Is that needed?, we can't flash it using the wiki instructions?
You mentioned somewhere reducing the ram in the config and seeing it it's "as easy as that". Does the build/config need to change to test that?
What is involved in getting the latest stable openwrt onto it?
I will open mine and check for the serial connection in the meantime.
Thanks

Serial access is a must in case nothing works after booting as it allows you to see the bootlog

1 Like

I have the console printing in minicom.
The serial is as follows:
At the pcb board corner where the heatsink sits, are 3 pads.
Closest to the corner is ground.
Next one is pcb transmit
Last one is pcb receive.

The minicom settings are:
115200 8N1
Everything else is set to "No"

It boots with kernel messages, and then:


BusyBox v1.29.3 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 SiWiFi openwrt1806_bpi_a28_bpi_sf19a28_fullmask_rel_V1.0.0_1bd03f878, LEDE
 -----------------------------------------------------
root@localhost:/#
1 Like

Do both your builds boot?

So the previous output was the stock firmware they shipped the unit with.
I am now going to try flash openwrt1806_main_a28_bpi_luci2_sf19a28_fullmask_rel_v1.0.0.bin and see if it boots.

1 Like

Good, baby steps on this, if they've shipped something that does not match what we can build we need to raise questions.

1 Like

Okay I flashed openwrt1806_main_a28_bpi_luci2_sf19a28_fullmask_rel_v1.0.0.bin and booted. It boots and I can access the web ui. One thing is that the front red light used to go green on stock firmware once system is fully up. After the flash it stayed red even after I got a serial shell and could access the web ui.
Which other image do you want me to flash and test?

have you got tftpboot options in the boot log?

Not that I can see.
Here is the full boot from serial:

can you stop autoboot, the Siflower evb commit has a ramdisk option, currently seeing if that produces an initramfs image we can load via tftp to ram.

I can stop autoboot yes, it then drops me into some sort of shell:
sfa28 #

(Is there an irc or something to chat in, would be a lot easier to co-ordinate than here IMO)

I have discord, if you want to create a channel I'll happily join.

you are in the uboot shell:

printenv

will give you the default boot settings, looks like we have tftp boot options

1 Like

usrename: h1771t_09923

I'm not too familiar with discord sorry. Is this enough to start a new chat there?

1 Like