Go to advanced search

by DarkElvenAngel
Thu Jan 23, 2020 12:14 pm
Forum: Troubleshooting
Topic: Issue "tcsetattr: Inappropriate ioctl for device" in script where curl used
Replies: 5
Views: 114

Re: Issue "tcsetattr: Inappropriate ioctl for device" in script where curl used

Just a suggestion if your problem is from SD card wear do to high writes, if you have enough ram free use a tmpfs for your image storage and processing. This will save you some headache.
by DarkElvenAngel
Thu Jan 23, 2020 1:00 am
Forum: Advanced users
Topic: Help me Fast Boot my pi-Zero MIDI "USB Gadget"
Replies: 31
Views: 997

Re: Help me Fast Boot my pi-Zero MIDI "USB Gadget"

Oh, ok, I understand now. I mainly use ssh to access my Rpis and I issue "scp" command from a terminal to copy files from and to my rpis. I don't use any browser. The image files are juste some basic usable examples (with some kernel optimizations). You can add other services, or use another ssh se...
by DarkElvenAngel
Thu Jan 23, 2020 12:05 am
Forum: Advanced users
Topic: Help me Fast Boot my pi-Zero MIDI "USB Gadget"
Replies: 31
Views: 997

Re: Help me Fast Boot my pi-Zero MIDI "USB Gadget"

@DarkElvenAngel : this was just an example to show how fast you can get a working Midi usb gadget : so around 4 seconds, which was the primary goal. Network access for developpement can be loaded after that : I added g_ether tonight, that adds roughtly 1 second to get the command prompt. And to get...
by DarkElvenAngel
Wed Jan 22, 2020 7:39 pm
Forum: Advanced users
Topic: Help me Fast Boot my pi-Zero MIDI "USB Gadget"
Replies: 31
Views: 997

Re: Help me Fast Boot my pi-Zero MIDI "USB Gadget"

So, I built a custom Buildroot system for a RpiZero for you, to demonstrate how fast it is. Here is the console log of boot sequence. As you can see, I could type the date command (to view system date) and it showed only 4 seconds from startup (date without RTC starts from 1970-01-01 00:00:00). I a...
by DarkElvenAngel
Tue Jan 21, 2020 8:46 pm
Forum: Beginners
Topic: Make pwr & act LED visible externally
Replies: 5
Views: 217

Re: Make pwr & act LED visible externally

Yes you can have the LEDs on the GPIO pins the settings are in the config.txt file

Reference https://github.com/raspberrypi/firmware ... EADME#L198

Never tried it myself but I remembered reading about it.
by DarkElvenAngel
Tue Jan 21, 2020 12:43 pm
Forum: Advanced users
Topic: Help me Fast Boot my pi-Zero MIDI "USB Gadget"
Replies: 31
Views: 997

Re: Help me Fast Boot my pi-Zero MIDI "USB Gadget"

Once the module is loaded into the kernel it stays loaded even after the initramfs is freed from memory. I hope that answers your question, the work isn't gone it's just finished. That’s reassuring. Sounds like I need to execute my midi service inside the initrd section (between start and free), th...
by DarkElvenAngel
Tue Jan 21, 2020 4:17 am
Forum: Advanced users
Topic: Help me Fast Boot my pi-Zero MIDI "USB Gadget"
Replies: 31
Views: 997

Re: Help me Fast Boot my pi-Zero MIDI "USB Gadget"

All the initrd is doing is loading the modules the kernel needs and then once it's done it hands off to the main os. I don't think your getting the performance increase because you need to do more than just load the modules. Looking at your code it looks as though the midi part could be run seperat...
by DarkElvenAngel
Mon Jan 20, 2020 7:28 pm
Forum: Advanced users
Topic: Help me Fast Boot my pi-Zero MIDI "USB Gadget"
Replies: 31
Views: 997

Re: Help me Fast Boot my pi-Zero MIDI "USB Gadget"

Hello, My best advice would be to reconsider using Buildroot to custom your kernel and OS : - In your log, systemd is used as it is the default init system for Raspbian. But it loads a lot of things (see the next log line : [ 7.619256] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +S...
by DarkElvenAngel
Mon Jan 20, 2020 1:57 am
Forum: Advanced users
Topic: Help me Fast Boot my pi-Zero MIDI "USB Gadget"
Replies: 31
Views: 997

Re: Help me Fast Boot my pi-Zero MIDI "USB Gadget"

[ 0.312651] Trying to unpack rootfs image as initramfs... [ 1.451233] Freeing initrd memory: 8776K This is really interesting... If it's freed, I take that to mean we are not benefitting from it... Questions this evokes: - Wouldn't we want this to remain in memory? - Do I need to init my service in...
by DarkElvenAngel
Sun Jan 19, 2020 9:55 pm
Forum: Advanced users
Topic: Help me Fast Boot my pi-Zero MIDI "USB Gadget"
Replies: 31
Views: 997

Re: Help me Fast Boot my pi-Zero MIDI "USB Gadget"

The log tells you that the initrd is unpacked at 0.312651 seconds, then at 4.485557 usb devices are coming online, then at 26.389296 the OTG Ethernet is initializing. Finally at 27.940481 the OTG configuration is complete and at 29.051831 the OTG Ethernet is up. The initramfs seems to only run for a...
by DarkElvenAngel
Sun Jan 19, 2020 5:41 pm
Forum: Advanced users
Topic: Help me Fast Boot my pi-Zero MIDI "USB Gadget"
Replies: 31
Views: 997

Re: Help me Fast Boot my pi-Zero MIDI "USB Gadget"

Alright, "time to midi" on the rPI Zero is now 34seconds (got slower, was 28). This is what I did: 1. lsmod running under a clean install (see previous post) 2. Install my OTG MIDI+Ether config 3. lsmod on a full install (e.g. with OTG MIDI+Ether and readonly FS) (see previous post) 4. Add the diff...
by DarkElvenAngel
Sat Jan 18, 2020 3:38 pm
Forum: Networking and servers
Topic: Updating Pis
Replies: 9
Views: 385

Re: Updating Pis

I would suggest that if you have a server have each device check in and report some status and your server can instruct the kiosk to start a remote update if updates are available. I'm presuming that these units are not somewhere you want to travel to and check on all the time and with this method y...
by DarkElvenAngel
Sat Jan 18, 2020 3:39 am
Forum: Advanced users
Topic: Help me Fast Boot my pi-Zero MIDI "USB Gadget"
Replies: 31
Views: 997

Re: Help me Fast Boot my pi-Zero MIDI "USB Gadget"

Thank you, I will try this this soon. boot up without OTG enable and look at what is loaded then to boot with everything you need enabled and list the modules and note each difference. Am I listing just modules here? I know to list services.., I’ll look around for how to list modules Yes the goal i...
by DarkElvenAngel
Fri Jan 17, 2020 10:12 pm
Forum: Advanced users
Topic: Help me Fast Boot my pi-Zero MIDI "USB Gadget"
Replies: 31
Views: 997

Re: Help me Fast Boot my pi-Zero MIDI "USB Gadget"

Loading the rest of system later sounds safe. I just need to figure out how to accomplish that Would "loading OTG drivers" early, simply be to run modprobe dwc2 and libcomposite? Or is there more... not sure if those 2 depend on other systems to be up So using an initramfs to accomplish this should...
by DarkElvenAngel
Fri Jan 17, 2020 2:42 am
Forum: Advanced users
Topic: Help me Fast Boot my pi-Zero MIDI "USB Gadget"
Replies: 31
Views: 997

Re: Help me Fast Boot my pi-Zero MIDI "USB Gadget"

An initramfs will do what you think, however it's not a trivial task to get going. I suggest you try looking into Buildroot and build your own Linux, you can get some great speeds out of it. You have to way out what you need when doing either method. You could just use an initramfs to load the OTG d...
by DarkElvenAngel
Fri Jan 10, 2020 3:00 pm
Forum: C/C++
Topic: fbclock.c -- write %H:%M:%S into framebuffer top right corner
Replies: 4
Views: 335

Re: fbclock.c -- write %H:%M:%S into framebuffer top right corner

Yeah that was me asking how to do that. I was looking to do a boot splash type idea that wouldn't block the boot messages, and it's evolved into an on-screen information and a bit of touchscreen interface. Original when I was looking into console fonts I waa looking at libraries to use them. I didn'...
by DarkElvenAngel
Thu Jan 09, 2020 9:22 pm
Forum: C/C++
Topic: Possible to block part of the terminal
Replies: 6
Views: 308

Re: Possible to block part of the terminal

So are you drawing into the top section using framebuffer methods, and leaving other programs running normally in the scrolling area? In that case I think you want to enable Origin Mode, which makes most other sequences count relative to the scrolling region instead of the top of screen. printf("\x...
by DarkElvenAngel
Thu Jan 09, 2020 5:37 pm
Forum: C/C++
Topic: Possible to block part of the terminal
Replies: 6
Views: 308

Re: Possible to block part of the terminal

This is working exactly as it says. I can set the scroll area. I've used this to setup the terminal as I needed printf ("\x1b[15r\x1b[15H") This sets the top of the screen to be free to draw on and places the cursor at the top of the scroll area. printf ("\x1b[15H\x1b[J") will do the correct screen ...
by DarkElvenAngel
Wed Jan 08, 2020 10:31 pm
Forum: C/C++
Topic: fbclock.c -- write %H:%M:%S into framebuffer top right corner
Replies: 4
Views: 335

Re: fbclock.c -- write %H:%M:%S into framebuffer top right corner

Thanks for sharing this,

I had something similar in mind, I'm going to have some touchscreen controls or system status.
by DarkElvenAngel
Tue Jan 07, 2020 3:53 pm
Forum: C/C++
Topic: Possible to block part of the terminal
Replies: 6
Views: 308

Re: Possible to block part of the terminal

Most terminal emulators support an escape sequence to set the scrolling region: ESC [ top ; bottom r . Example in C: printf("\x1b[5;20r"); You can omit top and/or bottom to mean the first or last line of the screen. The existing screen contents are left intact, but the cursor is moved back to 1;1. ...
by DarkElvenAngel
Tue Jan 07, 2020 1:26 pm
Forum: C/C++
Topic: Possible to block part of the terminal
Replies: 6
Views: 308

Possible to block part of the terminal

Hello everyone,

Just a quick question, what I'm looking to do is set the boundaries of the terminal so that part of the screen is static.

Much like during bootup the Raspberries stay at the top of the screen and the screen scroll doesn't over write it. How is this achieved?

Thanks.
by DarkElvenAngel
Tue Jan 07, 2020 12:51 pm
Forum: Raspbian
Topic: Disable Keyboard Power Button
Replies: 5
Views: 209

Re: Disable Keyboard Power Button

To my knowledge this is a result of the kernel picking up the KEY_POWER signal and acting on it. It looks like these days in the first place it's handled by systemd/logind which then tells the kernel what to do. PeterO Thanks for that update my keyboard doesn't have a power button either sorry I ca...
by DarkElvenAngel
Mon Jan 06, 2020 10:37 pm
Forum: Other projects
Topic: Raspberry Pi images for splash screen
Replies: 3
Views: 275

Re: Raspberry Pi images for splash screen

Right now I use a photo image of the boards. (Pi 4 and 3B+) The images are about 720p resolution. Real images or Digital Art would be fine. I assume by micro your meaning is something like icon size? Not really what I had in mind but that could work also. Maybe like a information banner along the to...
by DarkElvenAngel
Mon Jan 06, 2020 10:19 pm
Forum: Raspbian
Topic: Disable Keyboard Power Button
Replies: 5
Views: 209

Re: Disable Keyboard Power Button

To my knowledge this is a result of the kernel picking up the KEY_POWER signal and acting on it. You need to find a way to disable this feature in the kernel as far as I know this quite a task. Remapping of the keys as you are doing will not work as the kernel has already processed the keypress. The...
by DarkElvenAngel
Sat Jan 04, 2020 3:49 pm
Forum: Other projects
Topic: Raspberry Pi images for splash screen
Replies: 3
Views: 275

Re: Raspberry Pi images for splash screen

I guess I should have mentioned, that this is only for personal use and I might consider releasing if the licenses work out.

Thanks again.

Go to advanced search