Open rtissera opened 1 year ago
Hi @leeboby, I have the same question as above, would it be possible to get the source for these uboot images? or perhaps details on how they were built such as base images that were used and the changes that were made so they can be re-created?
Interested in the reasons why the 1.5GB and 4GB hardware requires different uboot configuration.
I'm interested too. I'm finding a way to make Alpine Linux image for sdcard.
Looking at the contents of the .deb packages and config files it looks like these images were generated with the Orange Pi SDK, not mainline u-boot. The SDK documentation is very good, although the u-boot used in the SDK is falling a bit behind
The build tool script scripts/compilation.sh
has the configuration setting that changes between 1.5GB / 4GB images (answering my original question)
if [[ ${BOARDFAMILY} == "sun50iw9" && ${BRANCH} == "next" ]]; then
if [[ ${MEM_TYPE} == "1500MB" ]]; then
sed -i 's/^.*CONFIG_DRAM_SUN50I_H616_TRIM_SIZE*/CONFIG_DRAM_SUN50I_H616_TRIM_SIZE=y/g' .config
else
sed -i 's/^.*CONFIG_DRAM_SUN50I_H616_TRIM_SIZE*/# CONFIG_DRAM_SUN50I_H616_TRIM_SIZE is not set/g' .config
fi
fi
my opi zero3 1.5G ram . i flash to 32g sd class10 and use virtual linux terminal to fix u-boot : 首先下载1.5g内存u-boot的bin文件:1.5gb内存u-boot的bin文件 然后将烧录好opizero3 linux6.x系统的tf卡插入其他的linux机器中 然后使用sudo fdisk -l命令查看tf卡的设备名: 比如: /dev/sdX 然后使用下面的命令将u-boot的bin文件更新到tf中 sudo dd bs=1k seek=8 if=u-boot-sunxi-with-spl-opizero3-1.5gb.bin of=/dev/sdX it not boot on my opi zero3. have any boot can run
Mainline u-boot didn't work. I'm using the one I extract from Orange Pi OS and it works.
Mainline u-boot didn't work. I'm using the one I extract from Orange Pi OS and it works.
Could you share?
Please share your steps to build u-boot. Official build sdk not work
Last time checked, u-boot works. Just clone the source then build. Or you can grab Armbian source code and build, it has u-boot. Mainline Armbian image works just fine, I'm install it on several 1GB version.
// I only have a 1.5 GiB board.
// For 1.5GiB boards
// file: u-boot/arch/arm/mach-sunxi/dram_sun50i_h616.c
static unsigned long mctl_calc_size(const struct dram_config *config)
{
u8 width = config->bus_full_width ? 4 : 2;
/* 8 banks */
unsigned long size;
size = (1ULL << (config->cols + config->rows + 3)) * width * config->ranks;
// 1.5GiB Need to add this line
size = (size * 3) / 4;
// End
return size;
}
I tried it and it works fine.
Can someone add it to the u-boot source code according to the standard?
It is in mainline uboot now you can close.
Hello, please provide the source code for your opizero 3 1.5 GB and 4 GB build so we can rebuild :) Thanks for your time :)