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
@mochaaP
Copy link

mochaaP commented Aug 19, 2024

@13584452567 您好,请问还有留着 u-boot 的源码树吗?我用的是同一份 dt,发现使用闭源 miniloader 会导致 uboot 中无法正常输出至 HDMI,而使用开源 idbloader 会导致无法切换到 EL2。

在 miniloader 上,u-boot 需要更改什么驱动来修复 video?

@13584452567
Copy link
Contributor Author

@13584452567 您好,请问还有留着 u-boot 的源码树吗?我用的是同一份 dt,发现使用闭源 miniloader 会导致 uboot 中无法正常输出至 HDMI,而使用开源 idbloader 会导致无法切换到 EL2。

在 miniloader 上,u-boot 需要更改什么驱动来修复 video?

我没有保留源码。无法切换到EL2应该是你没有把ATF集成进u-boot。去https://github.com/ARM-software/arm-trusted-firmware把atf源码拉取下来,编译平台配置使用rk3399。u-boot编译的时候配置一下环境变量BL31到atf编译出来的bl31.elf的路径,不出意外的话应该会在输出目录有一个itb文件,刷那个就行了。

我没有仔细的研究过miniloader,这个我也不清楚。

@TheRainstorm
Copy link

@13584452567 大佬您好,我想问一下你有测试过 4G 模块 mini pcie 是否工作吗?我使用 EC20 模块,发现插上后没有反应。lsusb 看不到设备信息。不过我测试了编译替换这个仓库里(https://github.com/cyyself/king3399-kernel-patches)的 kernel 是可以使用的,因此说明不是硬件问题,所以想问下是不是适配时 mini pcie 存在问题。

不过这个仓库他适配的是 B 版(宽)的那个板子,使用这个 kernel 后,我的 wifi 无法正常使用。所以如果能够结合这个适配,修复这个问题就好了。如果大佬没有时间研究的话,能否提供一些资料,帮助我这个小白入门一下,我自己尝试去适配(因为看了你写的 rk3399 启动过程的那个帖子感觉收获很多)。因为感觉这方面太难了,全是知识盲区,不知怎么下手

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.