Fishwaldo / sophgo-sg200x-debian

Debian Image for SG200x based boards such as Milk Duo256/DuoS and Sipeed LicheeRVNano
77 stars 9 forks source link

fsbl repo moved? #27

Open KevinMX opened 1 month ago

KevinMX commented 1 month ago

Seems the original milkv-duo/fsbl repo has moved/gone.

$ podman run --privileged -it --rm -v ./configs/:/configs -v ./image:/output ghcr.io/fishwaldo/sophgo-sg200x-debian:master make BOARD=duos fsbl

Board: duos
Storage: sd
Image Addons: "usb-gadget" "aic8800-firmware" "ethernet-leds" "usb-switch" "hciattach-service"
Packages: ca-certificates debian-archive-keyring dosfstools binutils file tree sudo bash-completion u-boot-menu openssh-server network-manager dnsmasq-base libpam-systemd ppp libengine-pkcs11-openssl iptables systemd-timesyncd vim usbutils parted exfatprogs systemd-sysv i2c-tools net-tools ethtool avahi-utils sudo gnupg rsync gpiod u-boot-tools libubootenv-tool duo-pinmux wireless-regdb wpasupplicant cvi-pinmux-cv181x bluez

Checking out FSBL for duos

Cloning into '/build//fsbl'...
Username for 'https://github.com':

There is an fsbl repo at https://github.com/milkv-duo/duo-buildroot-sdk/tree/develop/fsbl though. I guess some changes might be needed?

Fishwaldo commented 1 month ago

Sigh. The MilkV people removed the repo for unknown reasons. I’ll have to rebase against the Sophgo repo instead. But I’m swamped with real life at the moment so might take me a while.

(Checking out the full buildroot at MilkV just for fsbl is a bit heavy!)

carbonfix commented 1 month ago

The reason is that many users have been complaining that the SDK is not fully open source, so Sophgo has gradually opened up some source codes, including fsbl. Sophgo changed fsbl to source code compilation, and we also synchronized Sophgo's source code.

KevinMX commented 1 month ago

Sigh. The MilkV people removed the repo for unknown reasons. I’ll have to rebase against the Sophgo repo instead. But I’m swamped with real life at the moment so might take me a while.

(Checking out the full buildroot at MilkV just for fsbl is a bit heavy!)

You can do something like a sparse clone to avoid cloning the whole repo, but only the specific folder inside the repo.

Since GitHub already deprecated svn so for now it's a bit more complicated:

# Clone a sub-directory of a git repository. Probably replaces "svn co" which is deprecated by GitHub.
# Usage: git_sparse_clone $repo_url $repo_branch $sub_directory $target_location

function git_sparse_clone() {
    git clone --filter=blob:none --no-checkout --depth=1 -b $2 $1 upstream && cd upstream
    git sparse-checkout init --cone
    git sparse-checkout set $3
    git checkout
    mv $3 ../$4
    cd ../ && rm -rf upstream
}

And BTW, your Docker image is failing to build ATM. You'l probably want to change from Debian sid to bookworm. The latter works for me.

asyncmeow commented 2 weeks ago

Any fixes for this yet, or is there anything I can contribute here to fix it? Not entirely sure how the repo/scripts are set up, or where the FSBL we need actually is 😅

Yefori-Go commented 2 weeks ago

same problem