Howto install on watchguard M300

That particular flavor of terminal error looks like a bad ground somewhere; perhaps make sure you're using both grounds in the connector (pins 4 and 5 as seen on the left here)? I'm using a cable I found new-in-box from work that has USB on one end and Cisco console on the other, it of course works a treat, but I'll have to make up my own for a serial breakout cable once it comes home. I'm not sure what the password prompt is for, someone with more experience with u-boot than I will be far better equipped to say.

I recompiled with luci and mc , both apps do not work
what else could be missing and cause that ?

no error messages whatsoever ?

root@OpenWrt:~# mc
-ash: mc: not found

futher problems:

root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/snapshots/targets/qoriq/generic/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/snapshots/targets/qoriq/generic/packages/Packages.gz

path / URL does not exist

root@OpenWrt:~# zcat /tmp/openwrt-qoriq-generic-watchguard_firebox-m300-ext4-sdcard.img.gz  | dd of=/dev/mmcblk0 bs=1M
dd: error writing '/dev/mmcblk0': No space left on device
0+49 records in
0+48 records out

also cannot write to sdcard and fdisk is not available

df -h does not show /dev/mmcblk0

##########################

update: with an new 32gb sdcard it is working fine

Add mc and whatever else you need to your build configuration and build it directly into your image, as long as qoriq is source-only, there won't be full archive coverage for it (shared packages, yes - non-shared ones, such as kernel modules, no).

I recompiled with luci and mc , both apps do not work
what else could be missing and cause that ?

Both are mere software features and should just work, if the dependencies are met (and they should be, if you can enable them), but I have no qoriq or ppc specific experiences.

trying to complile image with more packages

fails at ERROR: package/feeds/packages/coova-chilli failed to build.

ubt@ubt:~/openwrt$ make package/coova-chilli/{clean,compile} V=s
make[2]: Entering directory '/home/ubt/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/ubt/openwrt/scripts/config'
make[1]: Entering directory '/home/ubt/openwrt'
make[2]: Entering directory '/home/ubt/openwrt/feeds/packages/net/coova-chilli'
rm -rf /home/ubt/openwrt/build_dir/target-powerpc64_e5500_musl/coova-chilli-1.6
rm -f /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/stamp/.coova-chilli_installed
rm -f /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/packages/coova-chilli.list
make[2]: Leaving directory '/home/ubt/openwrt/feeds/packages/net/coova-chilli'
time: package/feeds/packages/coova-chilli/clean#0.59#0.14#0.69
make[1]: Leaving directory '/home/ubt/openwrt'
make[2]: Entering directory '/home/ubt/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/ubt/openwrt/scripts/config'
make[1]: Entering directory '/home/ubt/openwrt'
make[2]: Entering directory '/home/ubt/openwrt/package/libs/toolchain'
Makefile:735: WARNING: skipping libgomp -- package has no install section
echo "libc" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/toolchain.default.install
echo "librt" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/toolchain.default.install
make[2]: Leaving directory '/home/ubt/openwrt/package/libs/toolchain'
time: package/libs/toolchain/compile#0.31#0.16#0.43
make[2]: Entering directory '/home/ubt/openwrt/package/firmware/linux-firmware'
make[2]: Leaving directory '/home/ubt/openwrt/package/firmware/linux-firmware'
time: package/firmware/linux-firmware/compile#2.09#0.32#2.33
make[2]: Entering directory '/home/ubt/openwrt/package/kernel/gpio-button-hotplug'
echo "kmod-gpio-button-hotplug" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/gpio-button-hotplug.default.install
make[2]: Leaving directory '/home/ubt/openwrt/package/kernel/gpio-button-hotplug'
time: package/kernel/gpio-button-hotplug/compile#0.31#0.17#0.43
make[2]: Entering directory '/home/ubt/openwrt/package/kernel/linux'
echo "kernel" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-crypto-acompress" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-crypto-crc32c" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-crypto-hash" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
WARNING: kmod-crypto-hw-hifn-795x is not available in the kernel config - generating empty package
WARNING: kmod-crypto-hw-padlock is not available in the kernel config - generating empty package
WARNING: kmod-fs-ntfs3 is not available in the kernel config - generating empty package
echo "kmod-hwmon-core" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
WARNING: kmod-hwmon-dme1737 is not available in the kernel config - generating empty package
WARNING: kmod-hwmon-it87 is not available in the kernel config - generating empty package
WARNING: kmod-hwmon-pwmfan is not available in the kernel config - generating empty package
WARNING: kmod-hwmon-sch5627 is not available in the kernel config - generating empty package
echo "kmod-hwmon-vid" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-hwmon-w83793" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-i2c-core" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
WARNING: kmod-i2c-pxa is not available in the kernel config - generating empty package
echo "kmod-leds-gpio" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-lib-crc-ccitt" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-lib-crc32c" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-lib-lzo" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
WARNING: kmod-dm9000 is not available in the kernel config - generating empty package
WARNING: kmod-net-selftests is not available in the kernel config - generating empty package
echo "kmod-nf-reject" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-nf-reject6" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-nf-conntrack" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-nf-conntrack6" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-nf-log" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-nf-log6" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-nf-nat" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-nf-nat6" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-nf-flow" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
WARNING: kmod-ipt-ulog is not available in the kernel config - generating empty package
echo "kmod-nfnetlink" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-nft-core" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-nft-nat" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-nft-offload" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
WARNING: kmod-nft-nat6 is not available in the kernel config - generating empty package
echo "kmod-nft-nat6" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-nft-fib" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
WARNING: kmod-isdn4linux is not available in the kernel config - generating empty package
echo "kmod-slhc" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-ppp" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-pppox" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-pppoe" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
WARNING: kmod-google-firmware is not available in the kernel config - generating empty package
WARNING: kmod-gpio-mcp23s08 is not available in the kernel config - generating empty package
WARNING: kmod-rtc-pt7c4338 is not available in the kernel config - generating empty package
echo "kmod-rtc-rs5c372a" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-pps" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-ptp" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-ptp-qoriq" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-random-core" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
WARNING: kmod-thermal is not available in the kernel config - generating empty package
echo "kmod-tpm" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
echo "kmod-tpm-i2c-atmel" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/linux.default.install
WARNING: kmod-sound-hda-core is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-realtek is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-cmedia is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-analog is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-idt is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-si3054 is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-cirrus is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-ca0110 is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-ca0132 is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-conexant is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-via is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-hdmi is not available in the kernel config - generating empty package
WARNING: kmod-backlight-pwm is not available in the kernel config - generating empty package
WARNING: kmod-fb-cfb-fillrect is not available in the kernel config - generating empty package
WARNING: kmod-fb-cfb-copyarea is not available in the kernel config - generating empty package
WARNING: kmod-fb-cfb-imgblt is not available in the kernel config - generating empty package
WARNING: kmod-drm-ttm is not available in the kernel config - generating empty package
WARNING: kmod-drm-kms-helper is not available in the kernel config - generating empty package
WARNING: kmod-w1-slave-ds2760 is not available in the kernel config - generating empty package
WARNING: kmod-net-rtl8192su is not available in the kernel config - generating empty package
make[2]: Leaving directory '/home/ubt/openwrt/package/kernel/linux'
time: package/kernel/linux/compile#5.14#0.55#5.65
make[2]: Entering directory '/home/ubt/openwrt/package/libs/libmnl'
echo "libmnl" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/libmnl.default.install
make[2]: Leaving directory '/home/ubt/openwrt/package/libs/libmnl'
time: package/libs/libmnl/compile#0.33#0.14#0.42
make[2]: Entering directory '/home/ubt/openwrt/package/libs/libnftnl'
echo "libnftnl" >> /home/ubt/openwrt/staging_dir/target-powerpc64_e5500_musl/pkginfo/libnftnl.default.install
make[2]: Leaving directory '/home/ubt/openwrt/package/libs/libnftnl'
time: package/libs/libnftnl/compile#0.45#0.18#0.57
make[2]: Entering directory '/home/ubt/openwrt/package/network/utils/iptables'
make[2]: Leaving directory '/home/ubt/openwrt/package/network/utils/iptables'
time: package/network/utils/iptables/compile#0.43#0.15#0.52
make[2]: Entering directory '/home/ubt/openwrt/feeds/packages/net/coova-chilli'
touch /home/ubt/openwrt/build_dir/target-powerpc64_e5500_musl/coova-chilli-1.6/.prepared_a535cb6b1222d8318e1ef10c7ed9a49f_6664517399ebbbc92a37c5bb081b5c53_check
. /home/ubt/openwrt/include/shell.sh; gzip -dc /home/ubt/openwrt/dl/coova-chilli-1.6.tar.gz | tar -C /home/ubt/openwrt/build_dir/target-powerpc64_e5500_musl/coova-chilli-1.6/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/ubt/openwrt/build_dir/target-powerpc64_e5500_musl/coova-chilli-1.6

Applying ./patches/010-kernel510.patch using plaintext:
patching file src/linux/xt_coova.c

Applying ./patches/100-fix-sysinfo-redeclaration.patch using plaintext:
patch: **** Only garbage was found in the patch input.
Patch failed!  Please fix ./patches/100-fix-sysinfo-redeclaration.patch!
make[2]: *** [Makefile:154: /home/ubt/openwrt/build_dir/target-powerpc64_e5500_musl/coova-chilli-1.6/.prepared_a535cb6b1222d8318e1ef10c7ed9a49f_6664517399ebbbc92a37c5bb081b5c53] Error 1
make[2]: Leaving directory '/home/ubt/openwrt/feeds/packages/net/coova-chilli'
time: package/feeds/packages/coova-chilli/compile#0.63#0.24#0.79
    ERROR: package/feeds/packages/coova-chilli failed to build.
make[1]: *** [package/Makefile:116: package/feeds/packages/coova-chilli/compile] Error 1
make[1]: Leaving directory '/home/ubt/openwrt'
make: *** [/home/ubt/openwrt/include/toplevel.mk:230: package/coova-chilli/compile] Error 2

for now i have removed this packet from .config to finish the make
now luci and other apps are running.

tftp boot works fine:

dhcp 0x30000000; setenv wgBootStenv bootargs root=/dev/sda2 rw rootdelay=2 console=$consoledev,$baudrate fsl_dpaa_fman.fsl_fm_max_frm=1530; mmc dev 0; ext2load usb 0:1 0x30000000 startrom.com; bootm 0x30000000;

but on booting sdcard I get kernel panic

setenv wgBootStenv bootargs root=/dev/mmcblk0 rw rootdelay=10 console=$consoledev,$baudrate fsl_dpaa_fman.fsl_fm_max_frm=1530; mmc dev 0; ext2load mmc 0:1 0x30000000 watchguard_firebox-m300-fit-uImage.itb; bootm 0x30000000;

 Waiting 2 sec before mounting root de_kβ–’...
[    3.660080] mβ–’*6085 0x0000000ffe4fc000:10: Link is U - 1Gbps/Full - floβ–’ control off
β–’rβ–’β–’ΚΊβ–’β–’] VFS: Cannot open roo"β–’β–’ice "mmcblk0p3" or unknoβ–’n-block(179,3): error -6
[    5.717644] Pleae append a correct "root=" boot option; here are the a_β–’β–’β–’β–’β–’β–’ partitions:
[β–’rβ–’β–’β–’β–’β–’β–’] 1f00              64 mtdblock0
[    5.726011]  (dri_β–’?)
[    5.732550] 1f01             128 mtdblock1
[    5.732552]  (dri_)
[    5.739084] 1f02              64 mtdblock2
[    5.739086]  (dri_)
[    5.745622] 1f03              64 mtdblock3
[    5.745624]  (dri_β–’?)
[    5.752161] 1f04             704 mtdblock4
[    5.752164]  (dri_β–’?)
[    5.758695] 1f05             704 mtdblock5
[    5.758697]  (dri_β–’?)
[    5.765234] 1f06             704 mtdblock6
[    5.765237]  (dri_β–’?)
[    5.771773] 1f07             768 mtdblock7
[    5.771776]  (dri_β–’?)
[    5.778307] 1f08              64 mtdblock8
[    5.778310]  (dri_β–’?)
[    5.784845] 1f09              64 mtdblock9
[    5.784848]  (dri_β–’?)
[    5.791384] 1f0a             768 mtdblock10
[    5.791387]  (dri_)
[    5.798006] b300        31166976 mmcblk0
[    5.798008]  dri_β–’: mmcblk
[    5.804807]   b301           16384 mmcblk0p1 5452574f-01
[    5.804809]
[    5.811607]   b302          106496 mmcblk0p2 5452574f-02
[    5.811609]
[    5.818403] Kernel panic - not syncing: VFS: Unable to mount root fs on unknoβ–’n-block(179,3)
[    5.826861] Rebooting in 1 second>Ι©Hβ–’

is it correct ?

ok after applying https://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg60927.html
my old
setenv wgBootStenv bootargs root=/dev/mmcblk0p1 rw rootdelay=10 console=$consoledev,$baudrate fsl_dpaa_fman.fsl_fm_max_frm=1530; mmc dev 0; ext2load mmc 0:1 0x30000000 uImage_m300.itb; bootm 0x30000000;
worked again.

u-boot menu not working so far

also this is working:
setenv wgBootSysA bootargs root=/dev/mmcblk0p1 rw rootdelay=2 console=$consoledev,$baudrate fsl_dpaa_fman.fsl_fm_max_frm=1530; mmc dev 0; ext2load mmc 0:1 $fdtaddr image-watchguard-firebox-m300.dtb; ext2load mmc 0:1 $loadaddr $OpenWrt_kernel; bootm $loadaddr - $fdtaddr;

but trying to setup u-boot with:
setenv wgBootSysA 'setenv bootargs root=/dev/mmcblk0p1 rw rootdelay=2 console=$consoledev,$baudrate fsl_dpaa_fman.fsl_fm_max_frm=1530; mmc dev 0; ext2load mmc 0:1 $fdtaddr image-watchguard-firebox-m300.dtb; ext2load mmc 0:1 $loadaddr $OpenWrt_kernel; bootm $loadaddr - $fdtaddr'
does not work. pasting that line in leads to a >

ok -now after reset the u-boot env none is working

If you're using latest head for compiling your kernel, I think you need to be loading a different kernel per this patch: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=c4b499bc03ab0e2eea643c46d1d781ab64e78931

Your setenv wgBootSysA commands aren't correctly formatted, either.

This shouldn't work without the quotes around it if I understand u-boot correctly, and you should be using setenv $OpenWrt_kernel watchguard_firebox-m300-fit-uImage.itb before setting wgBootSysA and then ext2load mmc 0:1 $fdtaddr $OpenWrt_kernel; in your wgBootSysA variable itself.

Try http://192.168.1.1/ once you get it booting again. The default/first menuconfig option for LuCI does not respond over HTTPS, only HTTP I think; I encountered the same issue at first.

2 Likes
setenv OpenWrt_kernel watchguard_firebox-m300-fit-uImage.itb
  setenv loadaddr 0x20000000
  setenv wgBootSysA 'setenv bootargs root=/dev/mmcblk0p2 rw rootdelay=2 console=$consoledev,$baudrate fsl_dpaa_fman.fsl_fm_max_frm=1530; mmc dev 0; ext2load mmc 0:1 $loadaddr $OpenWrt_kernel; bootm $loadaddr'
saveenv
reset

worked without any patch (maybe git is providing latest)
its up and running now - great
THX

OpenWrt SNAPSHOT r20179-57cad53f4e / LuCI Master git-22.208.55978-37422e8
Kernel Version 5.10.131

1 Like

is the image-watchguard-firebox-m300.dtb not needed any more ?

and what does this "fsl_dpaa_fman.fsl_fm_max_frm=1530" do ?

BTW the terminal problems are solved now
cable was ok but all CH340 USB adapters did not work properly
now a adapter with FTDI chip works fine

is there a way to remove, set or read the u-boot password from watchguard ?

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.