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 support for king3399 #1080

Merged
merged 1 commit into from
Feb 19, 2023
Merged

Add support for king3399 #1080

merged 1 commit into from
Feb 19, 2023

Conversation

13584452567
Copy link
Contributor

No description provided.

@13584452567
Copy link
Contributor Author

不出意外的话,其他人应该和我一样可以写入emmc或者使用tf卡启动。前提是u-boot使用的是主线而不是官方提供的那个远古版本。

@ophub ophub merged commit d462db0 into ophub:main Feb 19, 2023
@ophub
Copy link
Owner

ophub commented Feb 19, 2023

多谢分享

@ophub
Copy link
Owner

ophub commented Feb 19, 2023

你怎么关闭 unifreq/linux-6.1.y 的dts合并了?

@13584452567
Copy link
Contributor Author

你怎么关闭 unifreq/linux-6.1.y 的dts合并了?

抱歉,我的误操作把原来的分支删除了,然后github就自动把我的那个分支的PR也给关闭了。

ophub added a commit that referenced this pull request Feb 23, 2023
ophub added a commit that referenced this pull request Mar 1, 2023
@Fuweng365
Copy link

ophub大大,我下载的Armbian_23.02.0_rockchip_king3399_jammy_5.15.100_server_2023.03.15.img.gzArmbian_23.02.0_rockchip_king3399_jammy_6.1.18_server_2023.03.15.img.gz这两个镜像包,在品荣king3399 B板(方形)上可正常刷机启动,但有一个问题,两个版本都无法找到usb上的设备,就插入鼠标,键盘或USB dac都找不到设备,lsusb内也看不到插入的设备。不知道是我刷机的问题还是固件内驱动的问题,请抽时间排查一下

@13584452567
Copy link
Contributor Author

ophub大大,我下载的Armbian_23.02.0_rockchip_king3399_jammy_5.15.100_server_2023.03.15.img.gzArmbian_23.02.0_rockchip_king3399_jammy_6.1.18_server_2023.03.15.img.gz这两个镜像包,在品荣king3399 B板(方形)上可正常刷机启动,但有一个问题,两个版本都无法找到usb上的设备,就插入鼠标,键盘或USB dac都找不到设备,lsusb内也看不到插入的设备。不知道是我刷机的问题还是固件内驱动的问题,请抽时间排查一下

我使用的是king3399 A板(长),仓库里面上传的也是A板的。所以USB的定义和B板并不一样,USB接口没法使用。如果你有能用的主线armbian包可以分享一下,我把它合入仓库。

@Fuweng365
Copy link

Fuweng365 commented Mar 17, 2023 via email

ophub added a commit that referenced this pull request Mar 21, 2023
ophub added a commit that referenced this pull request Mar 31, 2023
@3329415183
Copy link

ophub大大,我下载的Armbian_23.02.0_rockchip_king3399_jammy_5.15.100_server_2023.03.15.img.gz,[Armbian_23.02.0_rockchip_king3399_jammy_6.1.18_server_2023.03.13.15.img.gz](https://github.com/ophub/amlogic-s9xxx-armbian/releases/download/Armbian_jammy_03.16.0123/Armbian_23.0不知道是我刷机的问题还是固件内驱动的问题,请抽时间排查一下

请问rk3399如何刷入emmc,使用瑞芯微的刷机工具加载镜像提示"加载固件失败"

@xiaobaishangche
Copy link

请问一下板载风扇怎么驱动,gpio50无法设置为高电平

@rongchuan17
Copy link
Contributor

大佬,请问你的刷机后usb都能用吗?我刷机后只有靠近电源的usb和usb3.0可用,我用的是king3399 长板,请问是哪里出了问题?谢谢

@13584452567
Copy link
Contributor Author

大佬,请问你的刷机后usb都能用吗?我刷机后只有靠近电源的usb和usb3.0可用,我用的是king3399 长板,请问是哪里出了问题?谢谢

适配出来的只有3.0能用,那几个2.0是hub转出来的,系统启动后要拉高一个gpio,我写到dts里面了,但是不知道为什么没有生效。现在我的板子出了,没法继续适配了。

@rongchuan17
Copy link
Contributor

大佬,请问你的刷机后usb都能用吗?我刷机后只有靠近电源的usb和usb3.0可用,我用的是king3399 长板,请问是哪里出了问题?谢谢

适配出来的只有3.0能用,那几个2.0是hub转出来的,系统启动后要拉高一个gpio,我写到dts里面了,但是不知道为什么没有生效。现在我的板子出了,没法继续适配了。

感谢大佬

@rongchuan17
Copy link
Contributor

大佬,请问你的刷机后usb都能用吗?我刷机后只有靠近电源的usb和usb3.0可用,我用的是king3399 长板,请问是哪里出了问题?谢谢

适配出来的只有3.0能用,那几个2.0是hub转出来的,系统启动后要拉高一个gpio,我写到dts里面了,但是不知道为什么没有生效。现在我的板子出了,没法继续适配了。

请问大佬怎样才能适配成功,能否给一个方向,我想尝试一下

@13584452567
Copy link
Contributor Author

大佬,请问你的刷机后usb都能用吗?我刷机后只有靠近电源的usb和usb3.0可用,我用的是king3399 长板,请问是哪里出了问题?谢谢

适配出来的只有3.0能用,那几个2.0是hub转出来的,系统启动后要拉高一个gpio,我写到dts里面了,但是不知道为什么没有生效。现在我的板子出了,没法继续适配了。

请问大佬怎样才能适配成功,能否给一个方向,我想尝试一下

gpio1 RK_PD0 编号换算一下吧。开机之后手动拉高一下就能启动。

最近考试很忙,没什么时间回github

@sters-for-watching
Copy link

我有一个这个板子,sd卡可以正常用,但是sd卡刷入emmc显示没有uboot,这个怎么弄呢?

ophub added a commit that referenced this pull request Jul 27, 2023
ophub added a commit that referenced this pull request Aug 20, 2023
@13584452567
Copy link
Contributor Author

我有一个这个板子,sd卡可以正常用,但是sd卡刷入emmc显示没有uboot,这个怎么弄呢?

直接使用rk的工具刷入emmc。

由于rk在这个项目内并非完全原生支持,uboot是预先写入img的。如果你坚持使用sd卡写入emmc,需要提前向emmc内手动写入uboot,对应的文件和方法可在仓库内找到。

@Manssizz
Copy link

Manssizz commented Sep 8, 2023

Directly use rk's tool to flash emmc.

Since rk is not fully natively supported in this project, uboot is pre-written into img. If you insist on using the sd card to write to emmc, you need to manually write uboot to emmc in advance, and the corresponding files and methods can be found in the warehouse.

can you explain me more detail how to flash into emmc? or any tutorial can i read for flashing into emmc? i've success flashing arm based this tutorial, but if i load ophub image, error Loading Firmware Failed
image

@wode2016501
Copy link

wode2016501 commented Sep 15, 2023

rp3399 解决usb供电
xxxx@localhost:~/v2ray$ cat /bin/usb.sh
echo 153 >/sys/class/gpio/export 
echo out >/sys/class/gpio/gpio153/direction
echo 1 >/sys/class/gpio/gpio153/value
xxx@localhost:~/v2ray$ cat /etc/systemd/system/multi-user.target.wants/usb.service
[Unit]
# Description:运行软件描述
Description=usb
# Documentation:软件的文档
# Documentation=
# After:因为软件的启动通常依赖于其他软件,这里是指定在哪个服务被启动之后再启动,设置优先级
After=network.target
# Requires:强依赖某个服务,目标服务的状态可以决定本软件运行。
# Requires=
 
[Service]
# ExecStart:执行的命令,可以直接是命令也可以是sh文件
ExecStart=/bin/bash /bin/usb.sh
# ExecStop:停止执行命令
#ExecStop=/bin/kill -s TERM $MAINPID
# ExecReload:重启时的命令
#ExecReload=/home/imut/Projects/imut_muye/dist/main
# Type:软件运行方式,默认为simple
#Type=simple
# WorkingDirectory:工作的目录环境
#WorkingDirectory=/home/imut/Projects/imut_muye/dist
 
[Install]
# WantedBy:这里相当于设置软件,选择运行在linux的哪个运行级别,只是在systemd中不在有运行级别概念,但是这里权当这么理解。 
WantedBy=multi-user.target



ophub added a commit that referenced this pull request Dec 6, 2023
ophub added a commit that referenced this pull request Apr 25, 2024
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

9 participants