Slackware - ARM This forum is for the discussion of Slackware ARM. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-10-2019, 07:36 AM
|
#16
|
Senior Member
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,505
Original Poster
|
Quote:
Originally Posted by drmozes
It hasn't.
I'll look at the other FB stuff.
|
seconded - obsolete, please disregard.
----
besides that FB stuff, when already at it, maybe consider the u-boot and flash access options short of an patch:
https://linux-sunxi.org/Xunlong_Oran...#SPI_NOR_flash
u-boot:
Code:
CONFIG_SPL_SPI_FLASH_SUPPORT, CONFIG_SPI_BOOT, CONFIG_SPL_SPI_SUNXI
kernel:
Quote:
Because u-boot can't actually interact with the flash once it's booted you need to write u-boot to it from linux. With a mainline kernel you need to enable the SPI NOR drivers in the kernel config and add a DT node something like this:
Code:
&spi0 {
status = "okay";
flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q128";
reg = <0>;
spi-max-frequency = <40000000>;
};
};
|
so we could have u-boot run from the inbuilt flash and boot freely from other media than the mmc card - and have said slot free for hot-plug and all things nice?
tho, this might be low priority.
|
|
|
02-11-2019, 06:39 AM
|
#17
|
Slackware Contributor
Registered: Apr 2008
Distribution: Slackware
Posts: 1,665
|
Quote:
Originally Posted by SCerovec
s
https://linux-sunxi.org/Xunlong_Oran...#SPI_NOR_flash
u-boot:
Code:
CONFIG_SPL_SPI_FLASH_SUPPORT, CONFIG_SPI_BOOT, CONFIG_SPL_SPI_SUNXI
kernel:
so we could have u-boot run from the inbuilt flash and boot freely from other media than the mmc card - and have said slot free for hot-plug and all things nice?
|
These options don't exist in 4.19.20 (or if they do, they aren't showing up). I wouldn't object to adding them for anybody else who wants to do it, although I have one "Pi"s that doesn't have onboard flash so it'd never be what I document as a suggested option.
Also, you still have to boot the thing in the first place - which presents a chicken-egg problem. I can't document what I don't know about - I don't know about any arbitrary version of u-boot that happens to be on any device. However, I do know that you can write a known version u-boot to an SD Card and have an environment in which you can follow a set of instructions and get Slackware going.
|
|
|
02-11-2019, 07:55 AM
|
#18
|
Senior Member
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,505
Original Poster
|
Quote:
Originally Posted by drmozes
These options don't exist in 4.19.20 (or if they do, they aren't showing up). I wouldn't object to adding them for anybody else who wants to do it, although I have one "Pi"s that doesn't have onboard flash so it'd never be what I document as a suggested option.
Also, you still have to boot the thing in the first place - which presents a chicken-egg problem. I can't document what I don't know about - I don't know about any arbitrary version of u-boot that happens to be on any device. However, I do know that you can write a known version u-boot to an SD Card and have an environment in which you can follow a set of instructions and get Slackware going.
|
1. the kernel configuration has grown to a mess - i used grep on the .config to confirm and used search on the nconfig to get around:
- one of the three is set already, the other two are "all over the place", so one would to resort to search in order to find them
2. good point - self brewing a custom u-boot is less of a nuisance to a casual hacker than maintaining too many options - let's disregard onboard u-boot then.
on another note;
3. could you please include (hard-coded please) the tiny 4x6 font in the lib section, so i would not need to run off an custom kernel when using ridiculously tiny screens, and i will pay off with cute photos of them (1.8" SPI TFT @128x160)?
|
|
|
02-11-2019, 09:31 AM
|
#19
|
Slackware Contributor
Registered: Apr 2008
Distribution: Slackware
Posts: 1,665
|
Quote:
Originally Posted by SCerovec
1. the kernel configuration has grown to a mess - i used grep on the .config to confirm and used search on the nconfig to get around:
- one of the three is set already, the other two are "all over the place", so one would to resort to search in order to find them
|
Which config file are you using? It doesn't look like it's the one in -current.
Code:
prisere [configs] # egrep "SPL_SPI_FLASH_SUPPORT|SPI_BOOT|SPL_SPI_SUNXI" config-armv7
prisere [configs] #
Quote:
on another note;
3. could you please include (hard-coded please) the tiny 4x6 font in the lib section, so i would not need to run off an custom kernel when using ridiculously tiny screens, and i will pay off with cute photos of them (1.8" SPI TFT @128x160)?
|
ok.
|
|
|
02-11-2019, 03:49 PM
|
#20
|
Senior Member
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,505
Original Poster
|
Quote:
Originally Posted by drmozes
Which config file are you using? It doesn't look like it's the one in -current.
Code:
prisere [configs] # egrep "SPL_SPI_FLASH_SUPPORT|SPI_BOOT|SPL_SPI_SUNXI" config-armv7
prisere [configs] #
[snip]
|
Somehow You where seekeing for the u-boot options in the kernel config (been there, done that, yeah)
I asked for (not as clear as this time, I have admit - my bad):
Code:
CONFIG_MTD_SPI_NOR=m
since we, so far, have this:
Code:
grep "SPI" ../config-armv7-4.19.20 | grep "NOR"
# CONFIG_MTD_SPI_NOR is not set
Again, i apologize for the loss of your time due to me not being as clear as i possibly should have.
|
|
|
02-11-2019, 07:09 PM
|
#21
|
Senior Member
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,505
Original Poster
|
attached is the config i've got at so far (non LTS kernel)
|
|
|
All times are GMT -5. The time now is 04:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|