Skip to content

Commit c3b8ec0

Browse files
committed
updates
1 parent 1f1dbd5 commit c3b8ec0

File tree

21 files changed

+253
-63
lines changed

21 files changed

+253
-63
lines changed

bootloader/u-boot.org

Lines changed: 63 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,79 @@
1111
- supports booting: linux, android, chromeos...
1212

1313
* commands
14-
|-------------------+-----------------------------------+-----------------|
15-
| <c> | | |
16-
| env | print | see environment |
17-
| setenv | VARIABLE VALUE | |
18-
| saveenv | - | |
19-
| sunxi_card0_probe | | detect sdcard |
20-
| mmcinfo | | |
21-
| fatls | mmc 0:1 | |
22-
| mmc | part | |
23-
| fatwrite | mmc 0:1 45000000 boot.img 4000000 | |
24-
| fastboot | flash boot patched.img | |
25-
|-------------------+-----------------------------------+-----------------|
14+
|-------------------+-----------------------------------+--------------------------------|
15+
| <c> | <c> | |
16+
| env | print | see environment |
17+
| printenv | VARIABLE | |
18+
| setenv | VARIABLE VALUE | |
19+
| reset | - | |
20+
| saveenv | - | makes the changes permanent |
21+
| sunxi_card0_probe | | detect sdcard |
22+
| fatls | mmc 0:1 | |
23+
| tftp | ADDR FILE | writes tftp FILE in given ADDR |
24+
| mmc | part | |
25+
| mmcinfo | | |
26+
| nand | page N | dumps N page in hex |
27+
| fatwrite | mmc 0:1 45000000 boot.img 4000000 | |
28+
| fastboot | flash boot patched.img | |
29+
|-------------------+-----------------------------------+--------------------------------|
2630
* environment
2731
|-----------------+---------------------------------+-------------------|
28-
| | <c> | |
29-
| ipaddr | IP | |
30-
| serverip | IP | |
31-
| ethact | usb_ether | active iface |
32+
| <c> | <c> | |
33+
| ipaddr | IP | |
34+
| serverip | IP | |
35+
| ethact | usb_ether | active iface |
3236
| usbnet_devaddr | MAC | |
3337
| usbnet_hostaddr | MAC | |
34-
| bootdelay | 0 | |
35-
| bootcmd | | runs at boot time |
36-
| bootargs | | kernel cmdline |
37-
| boot_normal | sunxi_flash read 45000000 boot; | boot sequence? |
38+
| bootdelay | 0 | |
39+
| bootargs | | kernel cmdline |
40+
| bootcmd | | runs at boot time |
41+
| boot_normal | sunxi_flash read 45000000 boot; | boot sequence? |
3842
| | bootm | |
3943
|-----------------+---------------------------------+-------------------|
44+
** boot steps
45+
46+
#+begin_src conf
47+
tftp 0x81000000 zImage;
48+
tftp 0x82000000 am335x-boneblack-wireless.dtb;
49+
bootz 0x81000000 - 0x82000000
50+
#+end_src
51+
52+
** cmdline
53+
54+
#+CAPTION: for NFS
55+
#+begin_src conf
56+
root=/dev/nfs
57+
rw
58+
ip=192.168.1.100:::::usb0
59+
console=ttyO0,115200n8
60+
g_ether.dev_addr=f8:dc:7a:00:00:02
61+
g_ether.host_addr=f8:dc:7a:00:00:01
62+
nfsroot=192.169.1.1:/home/kmu/ws/nfsroot,nfsvers=3
63+
#+end_src
64+
65+
* image header
66+
67+
#+CAPTION: u-boot image header in 0-31 bits
68+
[[https://i.imgur.com/BHaEoL4.png]]
69+
4070
* video
4171

4272
- https://www.youtube.com/playlist?list=PLM6hZ9mOhBWuWBz7REa_Gg3HZPbwHad-f
4373
- 12 [[https://www.youtube.com/watch?v=pteHg54WBbQ][Linux as a Boot Loader]] by Peter Chubb
4474
- 13 [[https://www.youtube.com/watch?v=RCTRSK45bS4][DIY Using Trust to Secure Embedded Projects]]
4575
- 14 [[https://www.youtube.com/watch?v=6QKBy-7qLyM][Linux Bootloaders & Kernel Configuration]]
4676
- 17 [[https://www.youtube.com/watch?v=2-Y4X81QHys][I Boot when U-Boot]] by Bernardo Maia Rodrigues & Vincent Ruijter
77+
78+
* build example
79+
80+
#+begin_src sh
81+
$ git clone git://github.com/u-boot/u-boot.git
82+
$ cd u-boot
83+
$ export ARCH=arm
84+
$ export CROSS_COMPILE=arm-linux-guneabi-
85+
$ make am335x_evm_defconfig
86+
$ make menuconfig # manual setup of other config
87+
$ make -j 8
88+
$ ls -l u-boot.img MLO # MLO = first stage in-memory bootloader, that loads u-boot.img
89+
#+end_src
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- https://en.wikipedia.org/wiki/Fuse_(electrical)
22
- test them with a continiuty tester
33
- types
4-
- glass
4+
- glass (with/out sand)
55
- ceramic

hardware/analog/components/passive/transformers.org

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
- An inductor wound with +1 coil of wire
22
- Changes in voltage between wires change the current
3+
- split transformers return +/- voltage
4+
- making 4diode rectifiers not necessary, no voltage drop
5+
- instead using 2 diodes, 1 for each polarity
36

47
|----------+---------------------+-----------------------|
58
| toroidal | ferrite donut, coil | stepping +/- voltages |

hardware/digital/components/cpu/32/raspberry.org

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
- freebsd https://wiki.freebsd.org/arm/Raspberry%20Pi
2323
- openwrt https://openwrt.org/toh/raspberry_pi_foundation/raspberry_pi
2424
- raspbian https://www.raspberrypi.com/software/operating-systems/
25+
- systemd disable: wpa_supplicant, ModemManager, avahi-daemon[.socket]
2526
- Gentoo
2627
- https://wiki.gentoo.org/wiki/Raspberry_Pi
2728
- https://wiki.gentoo.org/wiki/Raspberry_Pi/Installation
@@ -36,6 +37,7 @@ rootfstype=ext4
3637
elevator=deadline
3738
fsck.repair=yes
3839
rootwait
40+
ipv6.disable=1
3941
#+end_src
4042

4143
* Founders
@@ -80,6 +82,7 @@ rootwait
8082
- SPI
8183
- Serial
8284
- GPIO: 3.3v, 18mA max
85+
- https://www.pi4j.com/1.2/pins/model-2b-rev1.html
8386
- you will likely need a transistor
8487
- with a resistor in base calculated with Ohm's Law
8588

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
- https://www.youtube.com/watch?v=vznYVh5ugnk
12
- https://github.com/cpq/bare-metal-programming-guide

hardware/digital/components/cpu/8/arduino/self.org

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- https://wiki.archlinux.org/title/Arduino
12
- https://bitwisecmd.com/
23
- wiki https://en.wikipedia.org/wiki/Arduino
34
- reversing https://github.com/thomasbbrunner/arduino-reverse-engineering

hardware/digital/components/pld.org

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ https://en.wikipedia.org/wiki/Field-programmable_gate_array
8181
- 21 article https://dev.to/taw/100-languages-speedrun-episode-28-verilog-18jp
8282
** Videos
8383
*** Playlist
84+
- [[https://www.youtube.com/playlist?list=PLEBQazB0HUyT1WmMONxRZn9NmQ_9CIKhb][Intro to FPGA]] by digikey
8485
- 17 https://www.youtube.com/playlist?list=PLKcjQ_UFkrd7UcOVMm39A6VdMbWWq-e_c
8586
- 20 DE1-SoC FPGA Lectures
8687
- https://www.youtube.com/playlist?list=PLDqMkB5cbBA4OW0fDTu1FY6aw4uBWOpBa
Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,38 @@
1-
- https://github.com/Aodrulez/blueTag
2-
- jtagulator alternative on RPI zero/pico
31
- https://hydrabus.com/hydranfc-v2-sniffer-decoder-specifications/?v=c582dec943ff
42
- logic analyzer https://www.saleae.com/
5-
- FlashcatUSB https://www.embeddedcomputers.net/products/FlashcatUSB/
6-
- FT232H
7-
- High Speed RS-232
8-
- FTDI
9-
- 8 wires of data
10-
- 30Mbps
113
- CH341a https://github.com/boseji/CH341-Store
124
- I2C/SPI flash/bios programmer
135
- to dump a ROM
6+
7+
* jtag
8+
9+
** speaks
10+
11+
- GoodFET https://goodfet.sourceforge.net/ MSP430 based
12+
- FlashcatUSB https://www.embeddedcomputers.net/products/FlashcatUSB/
13+
- Bus Pirate v4 http://dangerousprototypes.com/docs/Bus_Pirate_v4_design_overview
14+
- PIC based
15+
- speaks JTAG, I2C, SPI, UART
1416
- J-Link https://www.segger.com/products/debug-probes/j-link/models/j-link-base/
1517
- Shikra DISCONTINUED https://www.blackhillsinfosec.com/hardware-hacking-with-shikra/
1618
- MX25L6406E/MX25L6408E
19+
20+
*** ft2232h
21+
1722
- Bus Blaster http://dangerousprototypes.com/docs/Bus_Blaster
18-
- Bus Pirate v4 jhttp://dangerousprototypes.com/docs/Bus_Pirate_v4_design_overview
19-
- Old?
20-
- PIC based
21-
- speaks I2C, SPI, UART
22-
- https://github.com/tigard-tools/tigard
23-
- An FTDI FT2232H-based multi-protocol tool for hardware hacking.
23+
- TIAO USB https://www.tiaowiki.com/w/TIAO_USB_Multi_Protocol_Adapter_User%27s_Manual
24+
- tigard https://github.com/tigard-tools/tigard
25+
26+
** enumerator
27+
28+
- https://github.com/Aodrulez/blueTag
29+
- jtagulator alternative on RPI zero/pico
30+
2431
- JTAGULATOR
32+
- jtag discovery
2533
- home https://grandideastudio.com/portfolio/security/jtagulator/
2634
- source https://github.com/grandideastudio/jtagulator
2735
- bom https://grandideastudio.com/wp-content/uploads/jtagulator_bom.pdf
2836
- P8X32A-Q44
37+
- https://github.com/cyphunk/JTAGenum
38+
- arduino based jtag discovery

hardware/digital/connector/irda.org

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
- https://en.wikipedia.org/wiki/Infrared_Data_Association
22
- https://www.sbprojects.net/knowledge/ir/
3+
- argentina codes https://github.com/estebanramos/Flipper-ArgentinaIRDB
34

45
- there is a *carrier frequency* of 38kHz
56
- 4 byte packet

hardware/digital/connector/jtag.org

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
- daisy chain multiple ics
2323
- https://en.wikipedia.org/wiki/Boundary_scan_description_language
2424

25+
* registers
26+
27+
- identification: chip id
28+
- instruction
29+
- boundary scan
30+
2531
* pins
2632
|------+----+-----------------------+----------------------|
2733
| TCK | -> | Test Clock | |
@@ -62,5 +68,10 @@
6268
- 2 pins: CLOCK, IO
6369

6470
* videos
65-
71+
- https://hackyourmom.com/en/osvita/english-chastyna-7-zlom-aparatnoyi-chastyny-systemy-uraznosti-portiv-uart-jtag-i-swd/
72+
- 13 [[https://www.youtube.com/watch?v=I27NX8uTJNY][Hard disks: More than just block devices]]
73+
- article https://spritesmods.com/?art=hddhack&page=1
74+
- 20 article - https://habr.com/en/articles/532672/
75+
- different author
76+
- 11 [[https://www.youtube.com/watch?v=k3ac5iBcfnQ][DEFCON 17: An Open JTAG Debugger]]
6677
- 11 [[https://www.youtube.com/watch?v=TlWlLeC5BUs][EEVblog #499 - What is JTAG and Boundary Scan?]]

0 commit comments

Comments
 (0)