找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: dl***

[其他设备] 甜糖镜像发布,欢迎测试,支持r3300l/ty1208z/n1等s905设备

  [复制链接]
 楼主| 发表于 2020-11-18 00:33 | 显示全部楼层
bioveronica 发表于 2020-11-3 23:11
楼主您好,我的盒子R3300L是潜龙的4.4.2安卓固件,TF卡启动到Armbian系统,登录后看不到网口IP地址,刷入到 ...

可能是bootloader没有初始化phy的缘故,试试使用最新链接,boot分区新建replaceuboot.txt替换uboot,之前我测试过r3300l和ty1208z固件可以通刷的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-11-22 20:31 | 显示全部楼层
没说s905的用法啊

点评

修改BOOT分区的uEnv.txt里的dtb那一行,具体有什么dtb可以在dtb/amlogic下找,常用的是 meson-gxl-s905d-phicomm-n1.dtb meson-gxl-s905x-p212.dtb 其中p212适用于r3300l、ty1208z等机器  详情 回复 发表于 2021-2-1 22:17
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-11-28 11:07 | 显示全部楼层
感谢楼主分享,确实是自动烧录,自动挂载硬盘,但是有几个 BUG 反馈一下,机器断网后,mac 似乎变了,甜糖已经绑定的设备失联,再搜索就找不到了。而且如果家里路由器有定时重启的话,问题也一样,虽然 N1 物理设备可以获取到 IP,但是甜糖的网络信息又变了,也会断开找不到了,是否可以增加守护 mac 进程,自动联网?

点评

关于mac克隆,可以修改环境变量,也可以在networkmanager中指定mac(使用mmtui命令启动文字ui) 修改环境变量可以在uboot中修改,这里推荐在linux下修改 首先编辑/etc/fw_env.config,内容为 /dev/mmcblk1 0x274000  详情 回复 发表于 2021-2-1 22:14
你是什么机器 ? 我这个新版本 进入的时候 屏幕一直显示在 4个企鹅那里 然后插上键盘也不能输入命令。好像就等着usb磁盘 插了没啥用。  详情 回复 发表于 2020-12-13 18:32
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-12-13 01:24 | 显示全部楼层
本帖最后由 th3639 于 2020-12-13 01:30 编辑

ty1208 这个我焊接上了 ttl  没有任何反应 求指导一下

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-12-13 01:29 | 显示全部楼层
本帖最后由 th3639 于 2020-12-13 10:55 编辑

是不是只要 ttl 焊接上去  设置115200  putty连上 插电就能看 代码?

我玩客云的是这么刷的,  ty1208-z 这个 ok

usb/tf卡启动说明 / boot from usb or tf card
制作完成后的镜像请烧录入u盘/移动硬盘/tf卡中启动,请先确认机器支持从usb或者tf卡启动,启动后默认自动刷入emmc,完成后自动关机。刷机日志install_log.txt可在刷机后BOOT分区中找到。

After patching the image, please burn it into the flash-disk / portable hard drive / tf cards. Make sure your box can boot from usb or tf. The OS will install to the built-in emmc by default, and it will auto poweroff after installation. You can find install log install_log.txt in BOOT partition.

启动/刷机控制 / boot/install control
以下操作均在BOOT分区进行,该分区为FAT32分区,Windows下可读写。

创建空文件changemmc.txt可以将系统安装至mmc0总线上的emmc中,这取决于机型,例如R3300-M,大部分机器无需改动
创建空文件replaceuboot.txt可以替换uboot,这针对部分p212/p211兼容机原厂uboot未初始化网卡导致Armbian无法使用网口,如部分ty1208z
创建空文件notautoinstall.txt可以禁用自动刷机功能,启动后将不会自动将系统安装至内部emmc
these operation should be done in BOOT partition. This is a FAT32 partition, which can be seen in Windows.

add a new empty file changemmc.txt and then the os will be install to the emmc in mmc0 bus, this depends on your meachine, for example, R3300-M. for most boxes, no need to use this feature
add a new empty file replaceuboot.txt and then the uboot will be replace. This is useful for some boxes whose uboot doesn't initial the ethernet phy, for example, a amount of ty1208z
add a new empty file notautoinstall.txt and then the os will not install itself into built-in emmc.
uboot命令提示
若需要ttl输入uboot命令以从u盘/tf卡启动,可以参考:

usb启动 / boot from usb
usb start;

if fatload usb 0 1020000 s905_autoscript; then autoscr 1020000; fi; if fatload usb 1 1020000 s905_autoscript; then autoscr 1020000; fi; if fatload usb 2 1020000 s905_autoscript; then autoscr 1020000; fi; if fatload usb 3 1020000 s905_autoscript; then autoscr 1020000; fi;

tf卡启动 / boot from tf card
mmcinfo;

if fatload mmc 0 1020000 s905_autoscript; then autoscr 1020000; fi;

若当前系统为安卓,建议先不插入u盘/tf卡,以免进uboot识别进入安卓系统损坏镜像,先确认进入uboot环境再插入u盘/tf卡,然后输入命令。

if current os is Android, enter the uboot environment first and then insert your usb disk or tf is better, in order to prevent Android destory the Armbian files.

启动过一次Armian后,后续u盘/tf卡启动优先级大于内置emmc,再次刷机无需进入uboot输入命令。

The boot order of usb or tf has benn greater then built-in emmc before you boot an Armbian, if you install the Armbian again, no need to enter uboot and give those commands.


我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-12-13 01:55 | 显示全部楼层
全网还没看到有人能给  ty1208  刷  armbian  楼主这是怎么做到的  能不能搞个详细教程
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-12-13 10:46 | 显示全部楼层
setenv bootfromrecovery 0
setenv bootfromnand 0
setenv start_mmc_autoscript 'if fatload usb 0 1020000 s905_autoscript; then autoscr 1020000; fi;'
setenv start_usb_autoscript "if fatload usb 1 1020000 s905_autoscript; then autoscr 1020000; fi; if fatload usb 2 1020000 s905_autoscript; then autoscr 1020000; fi; if fatload usb 3 1020000 s905_autoscript; then autoscr 1020000; fi;"
setenv start_autoscript 'if usb start; then run start_usb_autoscript; fi; if mmcinfo; then run start_mmc_autoscript; fi;'
setenv bootcmd 'run start_autoscript; run storeboot'
setenv firstboot 1
saveenv



TTL 的问题解决了 换了一个340的适配器


现在的问题是  如果从U盘启动 就一直在执行任务

我自己执行这些命令  启动还是会加载百事通 电视盒子系统   不走优盘启动

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-12-13 17:54 | 显示全部楼层
本帖最后由 th3639 于 2020-12-13 18:13 编辑

我用 天邑ty1208-z 盒子 测试的结果


ty1208z 用第一个镜像u盘能够启动  然后会自动关机。  


root@arm-64:~# install.sh
-bash: install.sh: command not found
root@arm-64:~# sh install.sh
*******************************************
2020-12-13-18:09:51
mount: /root: can't find in /etc/fstab.
Start script create MBR and filesystem
Start backup u-boot default
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 5.70464 s, 735 kB/s
Start create MBR and partittion
Error: Partition(s) on /dev/mmcblk1 are being used.
Error: You requested a partition from 700MB to 828MB (sectors 1367187..1617187).
The closest location we can manage is 700MB to 700MB (sectors 1368063..1368063).
Error: You requested a partition from 829MB to 7650MB (sectors 1619140..14942207).
The closest location we can manage is 829MB to 829MB (sectors 1619967..1619967).
Start restore u-boot
442+0 records in
442+0 records out
442 bytes copied, 0.018963 s, 23.3 kB/s
8191+0 records in
8191+0 records out
4193792 bytes (4.2 MB, 4.0 MiB) copied, 10.5875 s, 396 kB/s
Done
Start copy system for eMMC.
rm: cannot remove '/ddbr/install/usr/share/man': Directory not empty
Formatting BOOT partition...mkfs.fat 4.1 (2017-01-24)
done.
Cppying BOOT...done.
Edit init config...sed: can't read /ddbr/install/uEnv.txt: No such file or directory
done.
rm: cannot remove '/ddbr/install/s9*': No such file or directory
rm: cannot remove '/ddbr/install/aml*': No such file or directory
Unmounting ROOT partiton.
umount: /ddbr/install: target is busy.
Formatting ROOT partition...
/dev/mmcblk1p2 contains a ext4 file system labelled 'ROOT_EMMC'
        last mounted on /ddbr/install on Sun Dec 13 18:09:39 2020
/dev/mmcblk1p2 is mounted; will not make a filesystem here!
e2fsck 1.45.5 (07-Jan-2020)
Warning!  /dev/mmcblk1p2 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
ROOT_EMMC: clean, 11/416976 files, 49888/1665280 blocks
done.
Copying ROOTFS.
mount: /ddbr/install: /dev/mmcblk1p2 already mounted on /ddbr/install.
Copy BIN
Create DEV
Copy ETC
Copy HOME
Copy LIB
Create MEDIA
Create MNT
Copy OPT
Create PROC
Copy ROOT
Create RUN
Copy SBIN
Copy SELINUX
Copy SRV
Create SYS
Create TMP
Copy USR
Copy VAR


中间有一段时间  可以用机器ssh上去 执行几行命令 , 不过来不及执行  install.sh 文件 就关机了。
然后拔掉U盘  机器重启不了

启动提示







本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

U盘启动自动刷机,此阶段无需登进去操作  详情 回复 发表于 2021-2-1 22:02
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-12-13 18:32 | 显示全部楼层
本帖最后由 th3639 于 2020-12-13 18:38 编辑
william_qq 发表于 2020-11-28 11:07
感谢楼主分享,确实是自动烧录,自动挂载硬盘,但是有几个 BUG 反馈一下,机器断网后,mac 似乎变了,甜糖 ...

你是什么机器 ? 我这个新版本 进入的时候 屏幕一直显示在  4个企鹅那里  然后插上键盘也不能输入命令。好像就等着usb磁盘 插了没啥用。
一直显示
[    4.140987] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.148036] usb 1-2: Product: DataTraveler 3.0
[    4.163173] usb 1-2: Manufacturer: Kingston
[    4.168700] usb 1-2: SerialNumber: 60A44C4138F0F210799D01E6
[    4.182531] usb-storage 1-2:1.0: USB Mass Storage device detected
[    4.193231] scsi host0: usb-storage 1-2:1.0
[    4.324657] usbcore: registered new interface driver uas
[    5.224345] scsi 0:0:0:0: Direct-Access     Kingston DataTraveler 3.0      PQ                                                                                                                                                             : 0 ANSI: 6
[    5.293765] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.299708] sd 0:0:0:0: [sda] 30218842 512-byte logical blocks: (15.5 GB/14.4                                                                                                                                                              GiB)
[    5.308134] sd 0:0:0:0: [sda] Write Protect is off
[    5.314446] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doe                                                                                                                                                             sn't support DPO or FUA
[    5.357675]  sda: sda1 sda2
[    5.366122] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   38.000127] usb 1-2: reset high-speed USB device number 2 using xhci-hcd
[   68.720452] usb 1-2: reset high-speed USB device number 2 using xhci-hcd
[   99.440580] usb 1-2: reset high-speed USB device number 2 using xhci-hcd
[  127.654213] random: crng init done
[  130.160544] usb 1-2: reset high-speed USB device number 2 using xhci-hcd
[  160.880517] usb 1-2: reset high-speed USB device number 2 using xhci-hcd
[  191.600347] usb 1-2: reset high-speed USB device number 2 using xhci-hcd
[  222.320531] usb 1-2: reset high-speed USB device number 2 using xhci-hcd


点评

这个可能正在烧录emmc中  详情 回复 发表于 2021-2-1 22:00
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-12-21 14:31 | 显示全部楼层
楼主,如何putty登录?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

需要新版openssh的支持,换个新一点的putty或者其他软件试试,如果是不太旧的win10直接去cmd里ssh,现在自带openssh了  详情 回复 发表于 2021-2-1 21:57
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-2-1 21:57 | 显示全部楼层
dcggcd 发表于 2020-12-21 14:31
楼主,如何putty登录?

需要新版openssh的支持,换个新一点的putty或者其他软件试试,如果是不太旧的win10直接去cmd里ssh,现在自带openssh了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-2-1 22:00 | 显示全部楼层
th3639 发表于 2020-12-13 18:32
你是什么机器 ? 我这个新版本 进入的时候 屏幕一直显示在  4个企鹅那里  然后插上键盘也不能输入命令。 ...

这个可能正在烧录emmc中
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-2-1 22:02 | 显示全部楼层
th3639 发表于 2020-12-13 17:54
我用 天邑ty1208-z 盒子 测试的结果

U盘启动自动刷机,此阶段无需登进去操作
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-2-1 22:14 | 显示全部楼层
william_qq 发表于 2020-11-28 11:07
感谢楼主分享,确实是自动烧录,自动挂载硬盘,但是有几个 BUG 反馈一下,机器断网后,mac 似乎变了,甜糖 ...

关于mac克隆,可以修改环境变量,也可以在networkmanager中指定mac(使用mmtui命令启动文字ui)
修改环境变量可以在uboot中修改,这里推荐在linux下修改
首先编辑/etc/fw_env.config,内容为
/dev/mmcblk1 0x27400000 0x10000 0x10000
查看mac地址变量命令为:fw_printenv ethaddr
设置mac地址变量命令为:fw_setenv ethaddr aa:bb:cc:dd:ee:ff
修改完重启后才能生效
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-2-1 22:17 | 显示全部楼层

修改BOOT分区的uEnv.txt里的dtb那一行,具体有什么dtb可以在dtb/amlogic下找,常用的是
meson-gxl-s905d-phicomm-n1.dtb
meson-gxl-s905x-p212.dtb
其中p212适用于r3300l、ty1208z等机器
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 08:00

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表