Skip to content

Commit f688866

Browse files
committed
bak
1 parent c4743c3 commit f688866

File tree

5 files changed

+121
-43
lines changed

5 files changed

+121
-43
lines changed

buildroot.md

+64-3
Original file line numberDiff line numberDiff line change
@@ -108,27 +108,88 @@ Grouped under `packages/Config.in`:
108108

109109
Many / all are SDL based. It seems that SDL has an `fbdev` mode that dispenses X11.
110110

111+
### prdoom
112+
113+
### chocolate-doom
114+
115+
Doom clones.
116+
117+
This shows one running on uclinux blackfin SDL DirectFB: https://www.youtube.com/watch?v=fKyQOntPEFs
118+
111119
### ltris
112120

113121
### lbreakout2
114122

115-
Fails with:
123+
From: http://lgames.sourceforge.net/about.php
124+
125+
Simple SDL based games `L` stands for Linux.
126+
127+
Should be able to run on framebuffer? But both on TTY and X11 they fail with:
116128

117129
set_video_mode: cannot allocate screen: Couldn't set console screen info
118130

131+
Looks like this is caused by the call: <https://www.libsdl.org/release/SDL-1.2.15/docs/html/sdlsetvideomode.html>
132+
133+
`fbset` seems to do the same calls, and fails in the same way.
134+
119135
### opentyrian
120136

121-
Hangs.
137+
Takes over screen and hangs.
122138

123139
### sl
124140

125141
Classic steam locomotive `sl` typo corrector. Text only.
126142

143+
### gnuchess
144+
145+
CLI chess.
146+
127147
## X11
128148

129149
http://unix.stackexchange.com/questions/70931/install-x11-on-my-own-linux-system
130150

131-
## Firefly
151+
## GUI
152+
153+
- <http://unix.stackexchange.com/questions/70931/install-x11-on-my-own-linux-system/306116#306116>
154+
155+
## SDL without X11
156+
157+
- <http://stackoverflow.com/questions/1263710/minimal-linux-distrobution-with-sdl-support-and-no-xwindows>
158+
159+
## Web browser
160+
161+
- <http://unix.stackexchange.com/questions/17779/how-can-i-build-a-custom-distribution-for-running-a-simple-web-browser/306192#306192>
162+
163+
## Debugging tools
164+
165+
The basics: always compile with:
166+
167+
- debugging symbols
168+
- gdb and gdbserver on target
169+
- host cross gdb
170+
- strace
171+
172+
## sshd
173+
174+
<http://stackoverflow.com/a/39301480/895245>
175+
176+
## nc
177+
178+
## netcat
179+
180+
Not enabled on BusyBox by default, see: `package/busybox/default.config`
181+
182+
But we have ping (TODO from where?), so whatever.
183+
184+
## Boards
185+
186+
### Raspberry pi
187+
188+
TODO: how to emulate with QEMU? `aarch` procedure did no work, no `dtb` file.
189+
190+
Just worked on a PI2 via UART. No `sshd` daemon though.
191+
192+
### Firefly
132193

133194
- <https://bugs.busybox.net/show_bug.cgi?id=9226>
134195
- <http://bbs.t-firefly.com/forum.php?mod=viewthread&tid=1777>

dev-filesystem.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,18 @@ Example: write pseudorandom sequences into `/dev/sda/` to hide data:
185185

186186
You can have some fun with mouses. Search for the mice or mouse device files and cat them:
187187

188-
sudo cat /dev/input/mice
188+
sudo hd /dev/input/mice
189189

190190
And then:
191191

192-
sudo cat /dev/input/mouse0
192+
sudo hd /dev/input/mouse0
193193

194194
Now note that when you move the mouse, cat spits something out to the screen!
195195

196196
`mice` is the combination of all mice, and each other `mouseX` is a single mouse device.
197197

198+
This subsystem is called `evdev`: <https://en.wikipedia.org/wiki/Evdev>
199+
198200
## /dev/shm
199201

200202
Files created by `shm_open` calls. This function is part of POSIX, but creation of the files under `/dev` is not.

qemu.md

+24-4
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,17 @@ Those allow you to observe the program state without using an external debugger
312312

313313
TODO: example.
314314

315-
## Access host
315+
### Monitor telnet from host:
316+
317+
Run QEMU with:
318+
319+
-monitor telnet:127.0.0.1:1234,server,nowait \
320+
321+
Then:
322+
323+
telnet localhost 1234
324+
325+
## Access host IP from QEMU
316326

317327
By default, the guest sees the host on a network at address 10.0.2.2.
318328

@@ -325,11 +335,13 @@ and inside a BusyBox image do:
325335
wget 10.0.2.2:8000
326336
cat index.html
327337

328-
## Serial console
338+
### Access QEMU IP from host
329339

330-
## Parallel console
340+
<http://unix.stackexchange.com/questions/124681/ssh-from-host-to-guest-using-qemu>
331341

332-
Enter with: `Ctrl + Alt + 3` and `Ctrl + Alt + 4`. TODO example.
342+
Looks like:
343+
344+
-net user,hostfwd=tcp::2222-:22
333345

334346
## Shared filesystem with host
335347

@@ -338,3 +350,11 @@ For simpler applications, just use `nc` or `wget`
338350
NFS: TODO example. With this you can just mount a filesystem on the guest and it synchronizes automagically. Buildroot does have an NFS package.
339351

340352
Without networking: <http://superuser.com/questions/628169/qemu-to-share-a-directory-with-the-host>
353+
354+
## Serial
355+
356+
## TTL
357+
358+
TODO: like the serial present on most dev boards, which gives a shell that can be accessed with:
359+
360+
telnet localhost 1234

window-manager.md

+4
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,7 @@ Restart Compiz after modifying configurations to load them:
107107
compiz --replace
108108

109109
You should do this from a tty other than `tty7`.
110+
111+
## Matchbox
112+
113+
Minimalistic, one window at a time only. Embedded focus. Buildroot 2016-05 has a package for it.

x11.md

+25-34
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@ To make this happen every time at startup TODO broken?:
172172

173173
The `~/.xsession` file could also be used depending on system
174174

175-
## xinitrc
176-
177-
Sourced in Ubuntu 12.04, but not 14.04.
178-
179175
## xsessionrc
180176

181177
TODO vs `xinitrc`?
@@ -394,33 +390,17 @@ Put this in your `~/.xinitrc`.
394390

395391
Either for testing or useful utilities.
396392

397-
- `xcalc`
398-
399-
Simple scientific calculations
400-
401-
- `xgc`
402-
403-
X Graphics Demo.
404-
405-
- `xeyes`
406-
407-
Fun X11 test program.
408-
409-
- `xfontsel`
410-
411-
Point and click and view how a font looks like.
412-
413-
- `xmag`
414-
415-
Magnifying lens.
416-
417-
- `xmore`
418-
419-
`more`, but in X!
420-
421-
- `xtime`
422-
423-
Pointer clock.
393+
- `xcalc`: simple scientific calculator
394+
- `xedit`: text editor
395+
- `xeyes`: fun X11 test program
396+
- `xfontsel`: point and click and view how a font looks like
397+
- `xgc`: X Graphics Demo. A GUI.
398+
- `xlogo`: a window with an X11 logo
399+
- `xmag`: magnifying lens
400+
- `xmessage`: `zenity`'s grandfather
401+
- `xmore`: `more` for X
402+
- `xtime`: pointer clock
403+
- `xterm`: terminal
424404

425405
### xev
426406

@@ -441,10 +421,21 @@ Try clicking on the windows, or using your keyboard to see the outputs.
441421
- <http://stackoverflow.com/questions/24147026/display-gui-on-raspeberry-without-startx>
442422
- <http://superuser.com/questions/904142/launching-programs-with-gui-without-display-manager>
443423

424+
### xinit
425+
426+
https://en.wikipedia.org/wiki/Xinit backend of startx
427+
428+
#### xinitrc
429+
430+
Sourced in Ubuntu 12.04, but not 14.04.
431+
444432
## startx
445433

446-
TODO example
434+
<http://askubuntu.com/questions/518454/what-does-startx-command-do/817747#817747>
447435

448-
### xinit
436+
Script to start an graphical session.
449437

450-
https://en.wikipedia.org/wiki/Xinit backend of startx
438+
**Don't ever run `sudo startx` on an Ubuntu TTY**!!! It will break your UI. Fix:
439+
440+
sudo apt-get install --reinstall ubuntu-desktop gdm unity
441+
sudo mv /etc/X11/xorg.conf "/etc/X11/xorg.conf.$(date '+%Y-%m-%d-%H-%M-%S').bak"

0 commit comments

Comments
 (0)