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

[device-port][halium-7.1][gtexswifi] Galaxy Tab A 7.0 #308

Open
3 of 16 tasks
bfourk opened this issue Mar 23, 2023 · 10 comments
Open
3 of 16 tasks

[device-port][halium-7.1][gtexswifi] Galaxy Tab A 7.0 #308

bfourk opened this issue Mar 23, 2023 · 10 comments

Comments

@bfourk
Copy link

bfourk commented Mar 23, 2023

Tree: halium-7.1

NOTE: this tablet requires a 512-byte header appended to the boot.img before it will even attempt to boot. This header is the letters "DHTB" followed by 508 NULL bytes.

@bfourk
Copy link
Author

bfourk commented May 12, 2023

Managed to patch the kernel and it compiles with CONFIG_TMPFS_POSIX_ACL set, haven't attempted to boot it yet.

@bfourk
Copy link
Author

bfourk commented Jun 2, 2023

I've gotten as far as booting into the init environment, and telnet'ing into the tablet. I haven't managed to get it to boot into the rootfs, not with hybris-boot or halium-boot.

@19atlas
Copy link

19atlas commented Jun 26, 2024

halium is booting?
because documation says CONFIG_IKCONFIG and CONFIG_IKCONFIG_PROC must be y

@bfourk
Copy link
Author

bfourk commented Jun 27, 2024

It's been a while since I've worked on this, but I was attempting to port Ubuntu Touch, and I got as far as the startup screen showing and freezing. I could still use ssh via. USB internet to control the tablet and it appeared to be booted into the distro (I believe I used halium-boot).

I used the kernel config check to set the configuration, and I remember having to unset CONFIG_USER_NS because it was causing compile problems.

@19atlas
Copy link

19atlas commented Jun 27, 2024

Well, if there are any files you use (such as defconfig), could you share them?

also gtexswifi needs DHTB to booting ubuntu touch?

(booting is important to me to port postmarketos)

@bfourk
Copy link
Author

bfourk commented Jun 27, 2024

Yes, the tablet will refuse to use the boot.img unless the DHTB part is appended to the beginning of the image (at least on mine)

I have tried porting pmOS as well, and ran into much the same issue as Ubuntu Touch (graphics froze on startup screen, could still SSH into the tablet)

I unfortunately don't have the defconfig anymore for Ubuntu Touch, but I do have the defconfig+files from pmOS, I've attached them to this comment.

pmos-gtexswifi.zip

@19atlas
Copy link

19atlas commented Jun 27, 2024

Yes, the tablet will refuse to use the boot.img unless the DHTB part is appended to the beginning of the image (at least on mine)

I have tried porting pmOS as well, and ran into much the same issue as Ubuntu Touch (graphics froze on startup screen, could still SSH into the tablet)

I unfortunately don't have the defconfig anymore for Ubuntu Touch, but I do have the defconfig+files from pmOS, I've attached them to this comment.

pmos-gtexswifi.zip

thank you so much
btw "refuse" do you mean to stuck on Samsung logo (my device do this)?
also I couldn't find anything about DHTB in the deviceinfo you shared. could i use this?

@bfourk
Copy link
Author

bfourk commented Jun 27, 2024

Yes, it would get stuck on the Samsung logo without the header.

So, for pmOS I would export the boot.img, and before flashing it to my tablet, I wrote a script that would add the header (for some reason the tablet just checks for the headers existence, it doesn't check if it's valid) You know it's working if there's red text on the top of the screen a few seconds after the Samsung logo pops up

I wrote a small bash script to do this for me, you can use it ./append-header boot.img and it will automatically append the header to the beginning of the image for you. It's only 3 lines, and you can use a hex editor if you want instead (just copy the 512-byte file to the beginning of the image file)

append-header.zip

@19atlas
Copy link

19atlas commented Jun 27, 2024

I wrote a small bash script to do this for me, you can use it ./append-header boot.img and it will automatically append the header to the beginning of the image for you. It's only 3 lines, and you can use a hex editor if you want instead (just copy the 512-byte file to the beginning of the image file)

append-header.zip

finaly i can see postmarketOS (thank you again). Could I use the script you sent in my own port in the future? (also this script maybe work gtexlte[sm-t285])

@bfourk
Copy link
Author

bfourk commented Jun 27, 2024

Yes, you can use the script. I don't have gtexslte, so I'm not sure if the header will work there or if it needs to be valid (my script just appends a null header which is enough for gtexswifi)

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

No branches or pull requests

2 participants