Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BesTV R3300L support and data #993

Merged
merged 1 commit into from
Feb 2, 2023
Merged

Add BesTV R3300L support and data #993

merged 1 commit into from
Feb 2, 2023

Conversation

7Ji
Copy link
Contributor

@7Ji 7Ji commented Feb 2, 2023

BesTV R3300L is a ISP custom-made setup box that's powered by Amlogic S905L-B, it was once popular in ~2020 in the blooming of custom s9xxx firmwares and my introduction to Amlogic tinkering.

This adds its dedicated u-boot(BL33) and bootloader image, built from v2023.01, source codes available in my u-boot repo, with noticable difference from generic s905x-p212 u-boot:

  1. The boot order is USB0 > MMC0 (SD) > MMC1 (EMMC) > PXE > DHCP.
    • The MMC2 is not in the boot order since on this device it's defined to be used as SDIO to connect to Wireless chip.
    • The Network bootings are placed at the latest as those are least frequently used and all they do are wasting the booting time
  2. The u-boot bootloader image that'll be written to eMMC will store env at 0xf0000 offset on MMC1 size 0x10000, ending at 0x100000 (1MiB), before any definable MBR partitions
    • this means the user can use fw_printenv and fw_setenv to handle u-boot envs from within the system with a fw_env.config containing the following line
      /dev/mmcblk2 0xf0000 0x10000
      

The u-boot & bootloader images support latest kernel as of now nicely


百视通R3300L是一台由晶晨S905L-B驱动的运营商订制机顶盒,在2020年左右各种s9xxx第三方固件萌芽蓬勃发展的时候曾经很流行,也是我的第一个把我引向晶晨平台折腾的盒子

这个PR增加专用的u-boot(BL33)和引导程序镜像,自主线v2023.01构建,源码可在我的u-boot仓库 获取,和通用的s905x-p212 u-boot有明显的区别是:

  1. 引导顺序是USB0 > MMC0 (SD) > MMC1 (EMMC) > PXE > DHCP
    • MMC2没有写入引导顺序,因为它在R3300L上被用来作为SDIO连接无线网卡
    • 网络引导被放在最后,因为很少用到,多数时候就是单纯浪费启动时间
  2. 用来写到eMMC上的引导程序镜像会把环境存储在MMC1的0xf0000偏移,大小0x10000,在0x100000 (1MiB)结束,也就是在任何可定义的MBR分区之前
    • 也就是说,用户可以用fw_printenvfw_setenv在系统里面通过有下面这行配置的fw_env.config来直接编辑u-boot环境
      /dev/mmcblk2 0xf0000 0x10000
      

u-boot和引导程序镜像均完美支持目前的最新内核

额外资源:

https://github.com/7Ji/u-boot/releases/tag/v2023.01-r3300l 中的bare-minimum.img,是利用ampart将无用分区全部阉割掉的线刷包,只有2.4M,线刷速度极快。可以用来将砖掉的盒子恢复到能启动到u-boot的状态,然后因为无安卓会自动加载外置系统,可以当作不需要安卓情况下的救砖包。

https://github.com/7Ji/HybridELEC/tree/android-burning#bestv-r3300l 中提供了将CE和EE直接打入的线刷包,可以配合将盒子做成四启动。

可以短接以屏蔽eMMC,强制进入线刷模式的触点。也可以使用HDMI短接器
r3300l-short-emmc

BesTV R3300L is a ISP custom-made setup box that's powered by Amlogic
S905L-B, it was once popular in ~2020 in the blooming of custom s9xxx
firmwares and my introduction to Amlogic tinkering.

This adds its dedicated u-boot(BL33) and bootloader image, built from
v2023.01, with noticable difference from generic s905x-p212 u-boot:
1. The boot order is USB0 > MMC0 (SD) > MMC1 (EMMC) > PXE > DHCP
   The MMC2 is not in the boot order since on this device it's defined
   to be used as SDIO to connect to Wireless chip.
   The Network bootings are placed at the latest as those are least
   frequently used and all they do are wasting the booting time
2. The u-boot bootloader image will store env at 0xf0000 offset on MMC1
   size 0x10000, ending at 0x100000 (1MiB), before any definable MBR
   partitions, this means the user can use fw_printenv and fw_setenv
   to handle u-boot envs from within the system with a fw_env.config
   containing the following line
   `/dev/mmcblk2 0xf0000 0x10000`

The u-boot & bootloader images support latest kernel (6.1.8 as of now)
nicely
@ophub ophub merged commit 6e698b1 into ophub:main Feb 2, 2023
@ophub
Copy link
Owner

ophub commented Feb 2, 2023

7Ji仓库里的宝贝挺多的,推荐大家多去学习,能深入了解系统启动/运行的机制,是不可多得的资料,中英文对译,不仅深入浅出地剖析了理论,还工具化了,开箱即用,我上午又去温习了一遍,每次看都能有新的收获。

@ophub
Copy link
Owner

ophub commented Feb 2, 2023

https://github.com/ophub/amlogic-s9xxx-armbian/releases

你下载名字中带s905l-b-r3300l的系统,试试这个打包的BesTV R3300L能否正常启动使用。

@7Ji
Copy link
Contributor Author

7Ji commented Feb 2, 2023

直接使用镜像,不做修改的前提下,均不能启动。因为处于优先顺位的脚本boot.scr里的loadaddr硬定义为了0x44000000,为1088M,在合法内存外。
但是重命名/extlinux/extlinux.conf.bak/extlinux/extlinux.conf后 (sysboot使用的配置,优先于boot.scr启动脚本),或者修改boot.scr后,即可启动
我自己用这个u-boot的时候是手写的sysboot配置,在预料之中sysboot能正常启动

@ophub
Copy link
Owner

ophub commented Feb 2, 2023

重命名/extlinux/extlinux.conf.bak为/extlinux/extlinux.conf 后,就可以USB启动?
写入emmc时也添加这个文件就可以了吧?

5.4/5.10/5.15/6.1内核都支持?

@7Ji
Copy link
Contributor Author

7Ji commented Feb 2, 2023

写入emmc时也添加这个文件就可以了吧?

在写入emmc的时候extlinux.conf是会自动复制的,不需要额外的“添加”。

5.4/5.10/5.15/6.1内核都支持?

  • 6.1.9 OK
  • 5.15.91 OK
  • 5.10.166 OK
  • 5.4.230 OK

@ophub
Copy link
Owner

ophub commented Feb 2, 2023

d22cd78

我添加了一个默认需要使用extlinux.conf文件的处理方法,以后这些设备直接打包时就会自动添加好extlinux.conf文件。

ophub added a commit that referenced this pull request Feb 23, 2023
Add BesTV R3300L support and data
ophub added a commit that referenced this pull request Mar 1, 2023
Add BesTV R3300L support and data
@nokia5320
Copy link

运行armbian 8g太小了,我自己更换了emmc 32g的,可以直接用你的吗?

@7Ji 7Ji deleted the r3300l branch March 4, 2023 16:18
@Cp0204

This comment was marked as off-topic.

ophub added a commit that referenced this pull request Mar 21, 2023
Add BesTV R3300L support and data
@18271211
Copy link

R3300L 的 wifi 有没有可能修复,用到现在只有一个3.14内核的wifi是正常的。
5.15的WiFi能扫描出来,但是连接就直接报错

@ophub
Copy link
Owner

ophub commented Mar 22, 2023

更新今天的内核,修复了wifi能看不能连的问题。

@18271211
Copy link

更新今天的内核,修复了wifi能看不能连的问题。

[]( ̄▽ ̄)*

@18271211
Copy link

更新今天的内核,修复了wifi能看不能连的问题。

Armbian_23.05.0_amlogic_s905lb-r3300l_bullseye_5.15.104_server_2023.03.29.img.gz
重新刷了这个版本的,wifi还是能看不能连

image

ophub added a commit that referenced this pull request Mar 31, 2023
Add BesTV R3300L support and data
@18271211
Copy link

18271211 commented Apr 3, 2023

更新今天的内核,修复了wifi能看不能连的问题。

Armbian_23.05.0_amlogic_s905lb-r3300l_bullseye_5.15.104_server_2023.03.29.img.gz 重新刷了这个版本的,wifi还是能看不能连

image

Armbian_23.05.0_amlogic_s905lb-r3300l_bullseye_5.15.105_server_2023.04.02.img.gz
可以工作了

@bi9bi9bee
Copy link

bi9bi9bee commented Apr 6, 2023

@ophub @7Ji 大佬,用了4月5号的r3300l固件openwrt_official_amlogic_s905lb-r3300l_k6.1.22_2023.04.05.img.gz,用晶晨宝盒选择设备【118】写入emmc,均不能从emmc启动。是什么原因呢?

ophub added a commit that referenced this pull request Jul 27, 2023
Add BesTV R3300L support and data
@mate60
Copy link

mate60 commented Aug 10, 2023

Armbian_23.08.0_amlogic_s905lb-r3300l_bullseye_6.1.42_server_2023.08.01.img

armbian::# nmcli device wifi connect LOX password ....1111
Error: No Wi-Fi device found.
armbian:
:#

ophub added a commit that referenced this pull request Aug 20, 2023
Add BesTV R3300L support and data
@GinRyan
Copy link

GinRyan commented Nov 29, 2023

有几个问题想要了解一下:
1、R3300M可以使用R3300L的镜像吗?
2、我不想刷到emmc上,那么如何刷到TF卡上替代LibreElec开机启动到OpenWRT呢?

@wuerone
Copy link

wuerone commented Dec 3, 2023

12月1日的6个r3300l镜像通过晶晨宝盒写入emmc,均不能启动,用u盘引导盒子,想通过命令行写入emmc,却总循环提示按回车键激活。r3300l的两个硬件版本(黑主板细体字和绿主板粗体字)都是如此。

@wuerone
Copy link

wuerone commented Dec 3, 2023

晶晨宝盒写入时选的设备是128。

@wuerone
Copy link

wuerone commented Dec 3, 2023

刚又试了下,插上引导u盘仍可以启动。

ophub added a commit that referenced this pull request Dec 6, 2023
Add BesTV R3300L support and data
@wuerone
Copy link

wuerone commented Dec 7, 2023

辛苦O大了,刚试了新版固件openwrt_official_amlogic_s905lb-r3300l_k5.15.141_2023.12.06.img.gz,晶晨宝盒里选设备129写入emmc,拔u盘重启,依然黑屏无法启动。

@bird202301
Copy link

bird202301 commented Feb 2, 2024

当前最新的5.15.148依然U盘可以启动,写入emmc就无法启动,但是观察到hdmi有信号,屏幕不待机,就是黑屏。
我联想到我的R3300L在写Armbian进入EMMC的时候,最开始也是黑屏,后来加了参数 armbian-install -m yes 成功了,是不是这个原因呢,openwrt不知道命令带不带这个-m yes 参数呢?

@18271211
Copy link

18271211 commented Feb 5, 2024

最新版两个内核写入EMMC均无法启动

@bird202301
Copy link

试试124和127,能写入emmc启动

@longge9527
Copy link

Armbian_23.05.0_amlogic_s905lb-r3300l_bullseye_5.15.105_server_2023.04.02.img.gz
请教这个版本得镜像哪里还能下载到,一直用5.7.0内核,启动太慢,有时网口识别不到,刚发现这个也带无线,大佬能发给我,谢谢
1584990999@qq.com 有偿红包感谢

@ophub
Copy link
Owner

ophub commented Mar 1, 2024

@bi9bi9bee
Copy link

大佬,之前有个固件,r3300l的内存有924M能用,这里的固件只能有788mb,这是为啥?
图片
图片

@ophub
Copy link
Owner

ophub commented Apr 9, 2024

你可以试试复制个/boot/u-boot重启测试

@bi9bi9bee
Copy link

图片
图片
图片
大佬,没有同名的文件,不明白是怎么替换的

@ophub
Copy link
Owner

ophub commented Apr 9, 2024

第一个图片,在你5.9.0里:

cd /boot
sha256sum u-boot*

看看u-boot.emmc这个文件和另外2个哪个的值是一样的。
或者你直接把5.9.0这个u-boot.emmc下载下来,放到5.15.153里,重启试试。

@winic57
Copy link

winic57 commented Apr 11, 2024

openwrt_lede_amlogic_s905lb-r3300l_k6.1.84_2024.04.08.img写入EMMC无法启动,目前哪个镜像是可以EMMC启动,请用过的告知一下,谢谢

@bi9bi9bee
Copy link

bi9bi9bee commented Apr 11, 2024

第一个图片,在你5.9.0里:

cd /boot
sha256sum u-boot*

看看u-boot.emmc这个文件和另外2个哪个的值是一样的。 或者你直接把5.9.0这个u-boot.emmc下载下来,放到5.15.153里,重启试试。

图片
能启动,有变化,但5.9是924M,5.153是912M,献上文件
u-boot.zip
还有个问题,就是HDMI输出的屏幕会一直有报错,但是wifi功能是正常的,但是SSH连接就不会显示这个报错
229efd6431a09a4e94d414c54459230

@ophub
Copy link
Owner

ophub commented Apr 12, 2024

/boot/u-boot-r3300l.bin 你把这个文件复制成u-boot.emmc试试:

cd /boot
cp -f u-boot-r3300l.bin u-boot.emmc
sync
reboot

@bi9bi9bee
Copy link

/boot/u-boot-r3300l.bin 你把这个文件复制成u-boot.emmc试试:

cd /boot
cp -f u-boot-r3300l.bin u-boot.emmc
sync
reboot

图片
这样操作了可以用,内存变成920M,但是HDMI输出报错还是没有解决,但报错内容好像有点不同
44a32e08acd80fb2049bfe6b1e32981

@ophub
Copy link
Owner

ophub commented Apr 12, 2024

无线禁用了,或者链接wifi

@bi9bi9bee
Copy link

无线禁用了,或者链接wifi

什么意思?我已经连接了wifi,并且wifi也是正常使用的

@ophub
Copy link
Owner

ophub commented Apr 12, 2024

那忽视吧

@winic57
Copy link

winic57 commented Apr 14, 2024

无线禁用了,或者链接wifi

什么意思?我已经连接了wifi,并且wifi也是正常使用的

麻烦问一下153如何写入emmc

@winic57
Copy link

winic57 commented Apr 14, 2024

试试124和127,能写入emmc启动
你好,是指的5.15.124这个版本吗?我编译了一个,好像还是不行
5a0129d1532175b5c8a3347953f4f15

ophub added a commit that referenced this pull request Apr 25, 2024
Add BesTV R3300L support and data
@precise-calvin
Copy link

Armbian_23.05.0_amlogic_s905lb-r3300l_bullseye_5.15.105_server_2023.04.02.img.gz 请教这个版本得镜像哪里还能下载到,一直用5.7.0内核,启动太慢,有时网口识别不到,刚发现这个也带无线,大佬能发给我,谢谢 1584990999@qq.com 有偿红包感谢

大哥,这版固件你找到了么,求分享

@bird202301
Copy link

bird202301 commented Apr 29, 2024 via email

@precise-calvin
Copy link

precise-calvin commented Apr 29, 2024 via email

@bird202301
Copy link

bird202301 commented Apr 30, 2024 via email

@bird202301
Copy link

bird202301 commented Apr 30, 2024 via email

@bird202301
Copy link

终于上来了,能访问github了,最近看到很多网友反映r3300L 的机器无法写入emmc,我有个假设,是不是最初大侠们的机器和我手里的有区别呢?以我为例 我的r3300L主板是绿色的,cpu是905L 不是905L-B,看大侠展示的主板是联通制造,电路板黑色,而我的是中国移动版,电路板绿色的,cpu是905L,这种无法写入emmc。
以上内容只是假设,提供个思路,请见谅。

@precise-calvin
Copy link

precise-calvin commented May 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet