Supporting ZSUN Wifi Card Reader (16MB Flash, 64MB RAM, AR9331)

Tried the logread, it works!
Checked the md5s, all match.

But still, i insert and remove the card during boot time, when it blinks faster, and still it stays blinking fast for as long as I leave it plugged in, and no wifi ssid found.

Just a note, don't know if it matter but I'm still using version 19.07.3 as the main firmware. I don't want to update until I have the recovery working

If everything matches then it should just work... :confused:

I have uploaded a short video on how to trigger the recovery firmware: https://www.veed.io/view/f817837b-aab0-4ce5-8dc8-2c0de948f8ba

You may also try the alternative u-boot I have just uploaded to GitHub, which should make it easier to boot either the main or recovery firmware.
It uses a different logic to select the firmware to boot, so when you connect your Zsun to the USB it will:

  • Immediately boot the main firmware if the SD Card is inserted.
  • Immediately boot the recovery firmware if the SD Card is ejected.

To flash it follow the below instructions and make sure the md5sum matches:

root@Zsun-SD100:~# md5sum /tmp/zsun-sd100.u-boot.alt.bin
eb1884192d412e8b74c38dc31531d990  /tmp/zsun-sd100.u-boot.alt.bin
root@Zsun-SD100:~# insmod $(find /lib/modules/ -name mtd-rw.ko) i_want_a_brick=1
root@Zsun-SD100:~# mtd write /tmp/zsun-sd100.u-boot.alt.bin u-boot
Unlocking u-boot ...

Writing from /tmp/zsun-sd100.u-boot.alt.bin to u-boot ...
root@Zsun-SD100:~# md5sum /dev/mtd0
eb1884192d412e8b74c38dc31531d990  /dev/mtd0

WARNING: Flashing the u-boot partition is dangerous and may cause you to brick your device - proceed with care!

1 Like

Thank you, the video helped, i was doing the push way later in the boot process.
I didnt try the alternative uboot but seems a good idea, although it requires that there is a sd card permanently inserted

1 Like

Note that it can be a broken one, all it needs to do is trigger the card-inserted switch (which is either mechanical or a very, very basic electric contact).

1 Like

I have a 32MB one inserted all the time (yes - 32 MEGAbytes not giga - one of the few in world I think :slight_smile: )

1 Like

hi
Can someone share the complete ethernet port connection diagram with all the necessary components?

did you see zsun sd100 pics on post linked from top of this thread?

This zsun sd100 video flashes a pic on screen with etherenet connected but doesn't say anything about it.

Ok, I noticed that 1nformatica has a separate video on how to connect the ethernet jack.

@brunompena Seems you are still working on the Zsun, would you happen to have a patch for the 22.03 imagebuilder? :slight_smile:

No, not really.
I have not touched the firmware since 21.02.0 as I lost interest in this project (the initial goal was to merge with upstream which unfortunately did not happen).
I might give it a try with 22.03, but only after the Christmas break as I am currently away.

4 Likes

Hi @brunompena ,
First of all thanks for the recent batch of updates in your repo.
If you don't mind me asking - why not focus only on the latest 22.03.3 (why all the RCs)?

It was a (perhaps silly) attempt to keep version parity with the official OpenWrt releases.

The patches for 22.03 are now available on the GitHub repository.

6 Likes

Hello, I have this version, is it safe to update? I no longer remember which version I installed.

-----------------------------------------------------
 OpenWrt 19.07.3, r11063-85e04e9f46
 -----------------------------------------------------

root@OpenWrt:~# md5sum /proc/mtd
83f3182ed6ebb0d9368f23841c09b697  /proc/mtd

on a first look I'd say you're running one of the brunompena's first releases so you can continue the upgrade procedure accordingly but if you want to be super safe you should wait for another opinion

Update works :wink:

3 Likes

Hi, I have this zsun from the start, but only using it for a glorified usb card reader.

I tried to flash it to openwrt by following this guide, but it left me on openwrt 15.05, and I cannot do sysupgrade to newer openwrt releases. I got this error: Can't open device for writing!

Any ideas?


Here's my full backup from stock firmware: https://www.mediafire.com/file/9kgeqrphbwxj3ks/zsun_stock.bin/file
SHA256: 25CEC984E1D164C8B6990566D8A3CF4CBA8454413970E2EF9AAADE023CEF3970

You need a 1.8v programmer to flash this. If you don't have a wson8 to dip8 adapter, you can use a clip, flip the chip and align the dot on the chip to the red cable, like this:

Please make sure you copy and flash both part1 and part2 files for the original firmware.
If the steps are executed correctly you should see the WiFi SSID Zsun is Updating! Please wait... while the update is running.

Seeking advice as my main firmware (I believe 19.07.03) became inaccessible. I'm able to boot to the recovery and connect via ssh, but want to check before proceeding to make sure I don't make things worse.

Booting into recovery and logging in via ssh I see:

OpenWrt 18.06.5, r7897-9d401013fc

So it seems I have the 18.06.5 recovery version.

brunompena, following your readme to identify current firmware before proceeding, running md5sum /proc/mtd via ssh in recovery I get:

root@Zsun-SD100:~# md5sum /proc/mtd
7b91c25619b1feecf5a2a9e34cf2c453  /proc/mtd

As that md5sum does NOT match any of the ones listed in the table in the readme, which is followed by a big "DO NOT CONTINUE" warning if there isn't a match ... well that's why I'm here. :slight_smile:

I went so far as to run mount_firmware and attempt to run firstboot && reboot to reset the main firmware to defaults:

This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
Opened mtd device: /dev/mtd6 (read-only)
/dev/mtdblock6 is not mounted
/dev/mtdblock6 will be erased on next mount
writing /dev/mtdblock6 failed: Operation not permitted

At this point I stopped. Per the readme, I think I'm supposed to run:

# For Recovery Image 18.06.5:
insmod $(find /lib/modules/ -name mtd-rw.ko) i_want_a_brick=1

... to unlock the partition and allow the firstboot command to work, but that "i_want_a_brick=1" line in there told me, "yes, I should really stop now and get advice". :slight_smile:

Bad weather here today so I'll be checking in regularly for any replies with suggestions to try out.

Since you are still running the old 18.06.5 recovery firmware, I would suggest the following approach:

  1. Download the latest 22.03.3 main firmware and flash it using your current recovery firmware:
    mtd -r write /tmp/openwrt-22.03.3-ath79-generic-zsun_sd100-squashfs-sysupgrade.bin firmware
    
  2. Once you have the main firmware working again, use it to flash the 19.07.8 recovery firmware so you have access to the additional recovery scripts in case you get stuck again:
    opkg install kmod-mtd-rw
    insmod $(find /lib/modules/ -name mtd-rw.ko) i_want_a_brick=1
    mtd write /tmp/openwrt-19.07.8-ath79-generic-zsun_sd100-recovery.bin recovery
    
3 Likes