ECE497 Listings for Embedded Linux Primer Chapter 2

2-1, page 15, Initial Bootloader Serial Output
Texas Instruments X-Loader 1.5.0 (Mar 27 2011 - 17:37:56) Beagle xM Reading boot sector Loading u-boot.bin from mmc

U-Boot 2011.03-rc1-00000-g9a3cc57-dirty (Apr 01 2011 - 17:41:42)

OMAP3630/3730-GP ES2.1, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz OMAP3 Beagle board + LPDDR/NAND I2C:  ready DRAM: 512 MiB NAND: 0 MiB MMC:  OMAP SD/MMC: 0
 * Warning - readenv failed, using default environment

In:   serial Out:  serial Err:  serial Beagle xM Rev C Recognized Tincantools Trainer board (rev 0 0) Die ID #397600029ff80000015f26ad0f01a010 Hit any key to stop autoboot: 0 OMAP3 beagleboard.org #

u-boot printenv
OMAP3 beagleboard.org # printenv baudrate=115200 beaglerev=xMC bootcmd=if mmc rescan ${mmcdev}; then if userbutton; then setenv bootenv user.txt;fi;echo SD/MMC found on device ${mmcdev}; if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loaduimage; then run mmcboot;fi;fi;run nandboot; bootdelay=3 bootenv=uEnv.txt buddy=trainer camera=lbcm3m1 console=ttyS2,115200n8 defaultdisplay=dvi dieid#=397600029ff80000015f26ad0f01a010 dvimode=640x480MR-16@60 importbootenv=echo Importing environment from mmc ...; env import -t $loadaddr $filesize loadaddr=0x80200000 loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv} loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz loaduimage=ext2load mmc ${mmcdev}:2 ${loadaddr} /boot/uImage loaduimagefat=fatload mmc ${mmcdev} ${loadaddr} uImage mmcargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate} buddy=${buddy} camera=${camera} vram=${vram} omapfb.mode=dvi:${dvimode} omapdss.def_disp=${defaultdisplay} root=${mmcroot} rootfstype=${mmcrootfstype} mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr} mmcdev=0 mmcroot=/dev/mmcblk0p2 rw mmcrootfstype=ext3 rootwait mpurate=auto nandargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate} buddy=${buddy} camera=${camera} vram=${vram} omapfb.mode=dvi:${dvimode} omapdss.def_disp=${defaultdisplay} root=${nandroot} rootfstype=${nandrootfstype} nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} 280000 400000; bootm ${loadaddr} nandroot=/dev/mtdblock4 rw nandrootfstype=jffs2 ramargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate} buddy=${buddy} camera=${camera} vram=${vram} omapfb.mode=dvi:${dvimode} omapdss.def_disp=${defaultdisplay} root=${ramroot} rootfstype=${ramrootfstype} ramboot=echo Booting from ramdisk ...; run ramargs; bootm ${loadaddr} ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=0x81000000,64M ramrootfstype=ext2 rdaddr=0x81000000 usbtty=cdc_acm vram=12M

Environment size: 2095/131068 bytes

u-boot help
OMAP3 beagleboard.org # help ?      - alias for 'help' base   - print or set address offset bdinfo - print Board Info structure boot   - boot default, i.e., run 'bootcmd' bootd  - boot default, i.e., run 'bootcmd' bootm  - boot application image from memory chpart - change active partition cmp    - memory compare coninfo - print console devices and information cp     - memory copy crc32  - checksum calculation dcache - enable or disable data cache echo   - echo args to console editenv - edit environment variable env    - environment handling commands exit   - exit script ext2load- load binary file from a Ext2 filesystem ext2ls - list files in a directory (default /) false  - do nothing, unsuccessfully fatinfo - print information about filesystem fatload - load binary file from a dos filesystem fatls  - list files in a directory (default /) fdt    - flattened device tree utility commands fsinfo - print information about filesystems fsload - load binary file from a filesystem image go     - start application at address 'addr' help   - print command description/usage i2c    - I2C sub-system icache - enable or disable instruction cache imxtract- extract a part of a multi-image itest  - return true/false on integer compare led    - led	- [0|1|green|all] [on|off]

loadb  - load binary file over serial line (kermit mode) loads  - load S-Record file over serial line loady  - load binary file over serial line (ymodem mode) loop   - infinite loop on address range ls     - list files in a directory (default /) md     - memory display mm     - memory modify (auto-incrementing address) mmc    - MMC sub system mmcinfo - display MMC info mtdparts- define flash/nand partitions mtest  - simple RAM read/write test mw     - memory write (fill) nand   - NAND sub-system nandecc - switch OMAP3 NAND ECC calculation algorithm nboot  - boot from NAND device nm     - memory modify (constant address) printenv- print environment variables reset  - Perform RESET of the CPU run    - run commands in an environment variable saveenv - save environment variables to persistent storage setenv - set environment variables setexpr - set environment variable as the result of eval expression showvar - print local hushshell variables sleep  - delay execution for some time source - run script from memory test   - minimal test like /bin/sh true   - do nothing, successfully userbutton- Return the status of the BeagleBoard USER button version - print monitor, compiler and linker version

2-2, page 16, Loading the Linux Kernel
OMAP3 beagleboard.org # boot The user button is currently NOT pressed. SD/MMC found on device 0 reading uEnv.txt

191 bytes read Loaded environment from uEnv.txt Importing environment from mmc ... Running uenvcmd ... Loading file "/boot/uImage" from mmc device 0:2 (xxa2) 3203088 bytes read Booting from mmc ... Image Name:  Angstrom/2.6.32/beagleboard Image Type:  ARM Linux Kernel Image (uncompressed) Data Size:   3203024 Bytes = 3.1 MiB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK  Loading Kernel Image ... OK OK
 * 1) Booting kernel from Legacy Image at 80200000 ...

Starting kernel ...

Uncompressing Linux................................................................................................................................................................................................................. done, booting the kernel. [   0.000000] Linux version 2.6.32 (koen@dominion) (gcc version 4.3.3 (GCC) ) #3 PREEMPT Tue May 10 10:06:15 CEST 2011 [   0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f [   0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache [   0.000000] Machine: OMAP3 Beagle Board [   0.000000] Memory policy: ECC disabled, Data cache writeback [   0.000000] OMAP3630/DM3730 ES1.0 (l2cache iva sgx neon isp 192mhz_clk ) [   0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x100000 [   0.000000] Reserving 25165824 bytes SDRAM for VRAM [   0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 122624 [   0.000000] Kernel command line: console=tty0 console=ttyS2,115200n8 consoleblank=0 mpurate=auto buddy=trainer camera=lbcm3m1 vram=24M omapfb.mode=dvi:hd720 mem=99M@0x80000000 mem=384M@0x88000000 omapfb.vram=0:12M,1:8M,2:4M omapdss.def_disp=dvi root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait [   0.000000] Beagle expansionboard: trainer [   0.000000] Beagle cameraboard: lbcm3m1 [   0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) [   0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [   0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [   0.000000] Memory: 99MB 384MB = 483MB total [   0.000000] Memory: 458496KB available (5900K code, 673K data, 204K init, 0K highmem) [   0.000000] Hierarchical RCU implementation. [   0.000000] NR_IRQS:402 [   0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz [   0.000000] Reprogramming SDRC clock to 332000000 Hz [    0.000000] GPMC revision 5.0 [   0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts [   0.000000] Total of 96 interrupts on 1 active controller [   0.000000] OMAP GPIO hardware version 2.5 [   0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz [    0.000000] Console: colour dummy device 80x30 [   0.000000] console [tty0] enabled [   0.000000] Calibrating delay loop... 513.62 BogoMIPS (lpj=2007040) [   0.000000] Mount-cache hash table entries: 512 [   0.000000] CPU: Testing write buffer coherency: ok [    0.000000] tmpfs: No value for mount option 'mode' [   0.000000] devtmpfs: initialized [   0.000000] regulator: core version 0.5 [   0.000000] NET: Registered protocol family 16 [   0.000000] OMAP3 Beagle Rev: xM C [    0.000000] Beagle cameraboard: registering i2c2 bus for lbcm3m1 [   0.000000] Beagle expansionboard: exporting GPIOs 130-141,162 to userspace [   0.000000] Found NAND on CS0 [   0.000000] Registering NAND on CS0 [   0.000000] Unable to get DVI reset GPIO [   0.000000] omap_init_mbox: platform not supported [ 1551.363037] OMAP DMA hardware revision 5.0 [ 1551.369598] bio: create slab  at 0 [ 1551.370880] SCSI subsystem initialized [ 1551.372283] usbcore: registered new interface driver usbfs [ 1551.372467] usbcore: registered new interface driver hub [ 1551.372680] usbcore: registered new device driver usb [ 1551.373046] i2c_omap i2c_omap.1: bus 1 rev4.0 at 2600 kHz [ 1551.375701] twl4030: PIH (irq 7) chaining IRQs 368..375 [ 1551.375762] twl4030: power (irq 373) chaining IRQs 376..383 [ 1551.376037] twl4030: gpio (irq 368) chaining IRQs 384..401 [ 1551.377807] regulator: VUSB1V5: 1500 mV normal standby [ 1551.378112] regulator: VUSB1V8: 1800 mV normal standby [ 1551.378356] regulator: VUSB3V1: 3100 mV normal standby [ 1551.379638] twl4030_usb twl4030_usb: Initialized TWL4030 USB module [ 1551.380096] regulator: VMMC1: 1850 <--> 3150 mV normal standby [ 1551.380340] regulator: VDAC: 1800 mV normal standby [ 1551.380615] regulator: VPLL2: 1800 mV normal standby [ 1551.380889] regulator: VSIM: 1800 <--> 3000 mV normal standby [ 1551.381256] regulator: VAUX3: 1800 mV normal standby [ 1551.381622] regulator: VAUX4: 1800 mV normal standby [ 1551.381805] i2c_omap i2c_omap.2: bus 2 rev4.0 at 400 kHz [ 1551.391357] i2c_omap i2c_omap.3: bus 3 rev4.0 at 100 kHz [ 1551.392578] Switching to clocksource 32k_counter [ 1551.401733] musb_hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0 [ 1551.405517] musb_hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92 [ 1551.405578] musb_hdrc musb_hdrc: MUSB HDRC host driver [ 1551.405700] musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1 [ 1551.405883] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 1551.405914] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1551.405975] usb usb1: Product: MUSB HDRC host driver [ 1551.406005] usb usb1: Manufacturer: Linux 2.6.32 musb-hcd [ 1551.406036] usb usb1: SerialNumber: musb_hdrc [ 1551.406677] hub 1-0:1.0: USB hub found [ 1551.406738] hub 1-0:1.0: 1 port detected [ 1551.407775] NET: Registered protocol family 2 [ 1551.408050] IP route cache hash table entries: 4096 (order: 2, 16384 bytes) [ 1551.408660] TCP established hash table entries: 16384 (order: 5, 131072 bytes) [ 1551.409088] TCP bind hash table entries: 16384 (order: 4, 65536 bytes) [ 1551.409332] TCP: Hash tables configured (established 16384 bind 16384) [ 1551.409362] TCP reno registered [ 1551.409393] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 1551.409454] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 1551.409698] NET: Registered protocol family 1 [ 1551.410156] RPC: Registered udp transport module. [ 1551.410217] RPC: Registered tcp transport module. [ 1551.410247] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1551.411132] omap-iommu omap-iommu.0: isp registered [ 1551.412872] VFS: Disk quotas dquot_6.5.2 [ 1551.412994] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 1551.414093] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1551.414916] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 1551.415771] msgmni has been set to 896 [ 1551.419555] alg: No test for stdrng (krng) [ 1551.419860] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) [ 1551.419921] io scheduler noop registered [ 1551.419952] io scheduler deadline registered [ 1551.420104] io scheduler cfq registered (default) [ 1551.478790] OMAP DSS rev 2.0 [ 1551.478881] OMAP DISPC rev 3.0 [ 1551.478942] OMAP VENC rev 2 [ 1551.479187] OMAP DSI rev 1.0 [ 1551.815734] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 1551.834197] serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654 [ 1551.851959] serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654 [ 1551.869659] serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654 [ 1552.456451] console [ttyS2] enabled [ 1552.466857] brd: module loaded [ 1552.473175] loop: module loaded [ 1552.477752] omap2-nand driver initializing [ 1552.482238] No NAND device found!!! [ 1552.485900] No NAND device found!!! [ 1552.490447] usbcore: registered new interface driver catc [ 1552.495971] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver [ 1552.502044] usbcore: registered new interface driver kaweth [ 1552.507720] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver [ 1552.515380] usbcore: registered new interface driver pegasus [ 1552.521118] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver [ 1552.528167] usbcore: registered new interface driver rtl8150 [ 1552.533966] usbcore: registered new interface driver asix [ 1552.539489] usbcore: registered new interface driver cdc_ether [ 1552.545501] usbcore: registered new interface driver dm9601 [ 1552.551269] usbcore: registered new interface driver smsc95xx [ 1552.557159] usbcore: registered new interface driver gl620a [ 1552.562866] usbcore: registered new interface driver net1080 [ 1552.568664] usbcore: registered new interface driver plusb [ 1552.574310] usbcore: registered new interface driver rndis_host [ 1552.580383] usbcore: registered new interface driver cdc_subset [ 1552.586425] usbcore: registered new interface driver zaurus [ 1552.592163] usbcore: registered new interface driver MOSCHIP usb-ethernet driver [ 1552.600250] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1552.607147] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller [ 1552.613189] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 2 [ 1552.620819] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800 [ 1552.634948] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00 [ 1552.640869] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 1552.647766] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1552.655059] usb usb2: Product: OMAP-EHCI Host Controller [ 1552.660461] usb usb2: Manufacturer: Linux 2.6.32 ehci_hcd [ 1552.665924] usb usb2: SerialNumber: ehci-omap.0 [ 1552.671203] hub 2-0:1.0: USB hub found [ 1552.675048] hub 2-0:1.0: 3 ports detected [ 1552.705352] Initializing USB Mass Storage driver... [ 1552.710449] usbcore: registered new interface driver usb-storage [ 1552.716552] USB Mass Storage support registered. [ 1552.721618] mice: PS/2 mouse device common for all mice [ 1552.727294] input: gpio-keys as /devices/platform/gpio-keys/input/input0 [ 1552.735137] input: twl4030_pwrbutton as /devices/platform/i2c_omap.1/i2c-1/1-0049/twl4030_pwrbutton/input/input1 [ 1552.745910] i2c /dev entries driver [ 1552.750030] Linux video capture interface: v2.00 [ 1552.755004] omap-iommu omap-iommu.0: isp: version 1.1 [ 1552.761749] vpfe_init [ 1552.764648] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec [ 1552.771423] cpuidle: using governor ladder [ 1552.775634] cpuidle: using governor menu [ 1552.885253] mmci-omap-hs mmci-omap-hs.1: err -16 configuring card detect [ 1552.892333] Registered led device: beagleboard::usr0 [ 1552.897521] Registered led device: beagleboard::usr1 [ 1552.904022] Registered led device: beagleboard::pmu_stat [ 1552.911041] usbcore: registered new interface driver usbhid [ 1552.916717] usbhid: USB HID core driver [ 1552.920745] Advanced Linux Sound Architecture Driver Version 1.0.21. [ 1552.927703] usbcore: registered new interface driver snd-usb-audio [ 1553.003601] usb 2-2: new high speed USB device using ehci-omap and address 2 [ 1553.011474] No device for DAI omap-mcbsp-dai-0 [ 1553.015960] No device for DAI omap-mcbsp-dai-1 [ 1553.020477] No device for DAI omap-mcbsp-dai-2 [ 1553.024963] No device for DAI omap-mcbsp-dai-3 [ 1553.029479] No device for DAI omap-mcbsp-dai-4 [ 1553.034027] OMAP3 Beagle SoC init [ 1553.038177] asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok [ 1553.049713] ALSA device list: [ 1553.052734]  #0: omap3beagle (twl4030) [ 1553.056732] oprofile: using arm/armv7 [ 1553.060699] TCP cubic registered [ 1553.063964] NET: Registered protocol family 17 [ 1553.068572] NET: Registered protocol family 15 [ 1553.073181] lib80211: common routines for IEEE802.11 drivers [ 1553.078918] ThumbEE CPU extension supported. [ 1553.083282] Power Management for TI OMAP3. [ 1553.088714] SmartReflex driver initialized [ 1553.092987] omap3beaglelmb: Driver registration complete [ 1553.106903] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3 [ 1553.115173] registered taskstats version 1 [ 1553.182495] usb 2-2: New USB device found, idVendor=0424, idProduct=9514 [ 1553.189300] usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1553.197296] hub 2-2:1.0: USB hub found [ 1553.201385] hub 2-2:1.0: 5 ports detected [ 1553.275512] mmc0: host does not support reading read-only switch. assuming write-enable. [ 1553.283721] mmc0: new high speed SDHC card at address 1234 [ 1553.289611] mmcblk0: mmc0:1234 SA04G 3.67 GiB [ 1553.307678] Console: switching to colour frame buffer device 160x45 [ 1553.327545] mmcblk0: p1 p2 [ 1553.333892] regulator_init_complete: incomplete constraints, leaving VAUX4 on [ 1553.341491] regulator_init_complete: incomplete constraints, leaving VAUX3 on [ 1553.349334] regulator_init_complete: incomplete constraints, leaving VDAC on [ 1553.357391] omap_vout omap_vout: probed for an unknown device [ 1553.369812] EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended [ 1553.379333] kjournald starting. Commit interval 5 seconds [ 1553.392669] EXT3-fs (mmcblk0p2): using internal journal [ 1553.398101] EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode [ 1553.405456] VFS: Mounted root (ext3 filesystem) on device 179:2. [ 1553.416168] devtmpfs: mounted [ 1553.422851] Freeing init memory: 204K [ 1553.533721] usb 2-2.1: new high speed USB device using ehci-omap and address 3 INIT: version 2.86 booting [ 1553.659179] usb 2-2.1: New USB device found, idVendor=0424, idProduct=ec00 [ 1553.670410] usb 2-2.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1553.684997] smsc95xx v1.0.4 [ 1553.753906] usb0: register 'smsc95xx' at usb-ehci-omap.0-2.1, smsc95xx USB 2.0 Ethernet, 5a:6b:7e:83:01:7d [ 1553.854095] usb 2-2.2: new high speed USB device using ehci-omap and address 4 Please wait: booting... Starting udev [ 1554.000518] usb 2-2.2: New USB device found, idVendor=0b95, idProduct=7720 [ 1554.012084] usb 2-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1554.023956] usb 2-2.2: Product: AX88772 [ 1554.032348] usb 2-2.2: Manufacturer: ASIX Elec. Corp. [ 1554.042266] usb 2-2.2: SerialNumber: 000001 [ 1554.890899] eth0: register 'asix' at usb-ehci-omap.0-2.2, ASIX AX88772 USB 2.0 Ethernet, 00:50:b6:06:c4:57 [ 1555.316528] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0 [ 1555.752227] usb 2-2.3: new high speed USB device using ehci-omap and address 5 [ 1556.591064] usb 2-2.3: New USB device found, idVendor=1415, idProduct=2000 [ 1556.747467] usb 2-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1556.782348] usb 2-2.3: Product: USB Camera-B4.04.27.1 [ 1556.792510] usb 2-2.3: Manufacturer: OmniVision Technologies, Inc. [ 1556.891815] gspca: main v2.8.0 registered [ 1556.912536] usb 2-2.4: new low speed USB device using ehci-omap and address 6 [ 1556.932342] gspca: probing 1415:2000 [ 1557.069854] usb 2-2.4: New USB device found, idVendor=046d, idProduct=c016 [ 1557.082977] usb 2-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1557.095520] usb 2-2.4: Product: Optical USB Mouse [ 1557.105316] usb 2-2.4: Manufacturer: Logitech [ 1557.118957] ov534: Sensor ID: 7721 [ 1557.132659] input: Logitech Optical USB Mouse as /devices/platform/ehci-omap.0/usb2/2-2/2-2.4/2-2.4:1.0/input/input2 [ 1557.192199] generic-usb 0003:046D:C016.0001: input: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb-ehci-omap.0-2.4/input0 [ 1557.240783] ov534: frame_rate: 30 [ 1557.262695] gspca: /dev/video0 created [ 1557.304016] usbcore: registered new interface driver ov534 [ 1557.341369] ov534: registered [ 1557.377960] usb 2-2.5: new low speed USB device using ehci-omap and address 7 [ 1557.578521] usb 2-2.5: New USB device found, idVendor=04f3, idProduct=0103 [ 1557.603027] usb 2-2.5: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1557.634033] input: HID 04f3:0103 as /devices/platform/ehci-omap.0/usb2/2-2/2-2.5/2-2.5:1.0/input/input3 [ 1557.694244] generic-usb 0003:04F3:0103.0002: input: USB HID v1.10 Keyboard [HID 04f3:0103] on usb-ehci-omap.0-2.5/input0 [ 1557.749481] input: HID 04f3:0103 as /devices/platform/ehci-omap.0/usb2/2-2/2-2.5/2-2.5:1.1/input/input4 [ 1557.829162] generic-usb 0003:04F3:0103.0003: input: USB HID v1.10 Device [HID 04f3:0103] on usb-ehci-omap.0-2.5/input1 Remounting root file system... Caching udev devnodes Populating dev cache [ 1572.894226] Bluetooth: Core ver 2.15 [ 1572.904296] NET: Registered protocol family 31 [ 1572.914123] Bluetooth: HCI device and connection manager initialized [ 1572.925842] Bluetooth: HCI socket layer initialized [ 1572.953735] Bluetooth: L2CAP ver 2.14 [ 1572.962768] Bluetooth: L2CAP socket layer initialized [ 1572.991455] Bluetooth: HIDP (Human Interface Emulation) ver 1.2 [ 1573.115783] NET: Registered protocol family 10 [ 1573.192199] NET: Registered protocol family 23 [ 1573.221649] IrCOMM protocol (Dag Brattli) [ 1573.332153] Bluetooth: RFCOMM TTY layer initialized [ 1573.342224] Bluetooth: RFCOMM socket layer initialized [ 1573.352325] Bluetooth: RFCOMM ver 1.11 ALSA: Restoring mixer settings... Cleaning: /etc/network/run/ifstate. No state is present for card CameraB404271 /usr/sbin/alsactl: parse:1655: Unable to open file '/usr/share/alsa/init/00main': No such file or directory No state is present for card CameraB404271 Configuring network interfaces... [ 1575.066680] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 eth0     no wireless extensions.

[ 1575.290283] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 Internet Systems Consortium DHCP Client 4.1.1-P1 Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:50:b6:06:c4:57 Sending on  LPF/eth0/00:50:b6:06:c4:57 Sending on  Socket/fallback DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPACK from 137.112.41.2 bound to 137.112.41.87 -- renewal in 1567 seconds. usb0     no wireless extensions.

Internet Systems Consortium DHCP Client 4.1.1-P1 Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/usb0/22:b8:c4:7d:a8:50 Sending on  LPF/usb0/22:b8:c4:7d:a8:50 Sending on  Socket/fallback DHCPREQUEST on usb0 to 255.255.255.255 port 67 DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 5 DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 14 DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 16 [ 1614.207458] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 9 DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 11 DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 6 No DHCPOFFERS received. No working leases in persistent database - sleeping. done. Starting portmap daemon: portmap. net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.all.rp_filter = 1 INIT: Entering runlevel: 5 Starting system message bus: dbus. Starting Hardware abstraction layer hald Configuring leds: beagleboard::pmu_stat: none beagleboard::usr0: heartbeat beagleboard::usr1: mmc0 Starting Dropbear SSH server: dropbear. Starting advanced power management daemon: No APM support in kernel (failed.) Starting Vixie-cron. Starting Samba: smbd nmbd. Starting syslog-ng:. Starting internet superserver: xinetd. * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon [ ok ] Starting Network connection manager daemon: NetworkManager. Starting PVR cups: started scheduler. Starting GNOME Display Manager gdm

.---.                                          '---'---'--'--'--.  |---'  '-'-'-'-'                -'  |                '---'
 * |    | __  |  ---'| '--.|  .-'|     |     |
 * |    | __  |  ---'| '--.|  .-'|     |     |
 * |    | __  |  ---'| '--.|  .-'|     |     |

The Angstrom Distribution beagleboard ttyS2

Angstrom 2010.7-test-20110220 beagleboard ttyS2

beagleboard login: root Last login: Thu Dec 29 17:12:23 GMT 2011 from 137.112.41.109 on pts/0 root@beagleboard:~#

2-X, page X, Shutdown messages
root@beagleboard:~# shutdown -r now �Broadcast message from root (ttyS2) (Thu Dec 29 16:02:35 2011):

The system is going down for reboot NOW! INIT: INIT: Sending processes the TERM signal Deconfiguring leds: beagleboard::pmu_stat: no trigger beagleboard::usr0: no trigger beagleboard::usr1: no trigger Stopping Dropbear SSH server: dropbear. * Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon [ ok ] Stopping advanced power management daemon: No /usr/sbin/apmd found running; none killed. apmd. Stopping Vixie-cron. Stopping Hardware abstraction layer hald Stopping system message bus: dbus. Stopping GNOME Display Manager gdm Stopping Samba: smbd nmbd. Stopping internet superserver: xinetd. Stopping Network connection manager daemon: NetworkManager. ALSA: Storing mixer settings... /usr/sbin/alsactl: get_control:259: Cannot read control '2,0,0,Mic Capture Volume,0': Invalid argument Deconfiguring network interfaces... Internet Systems Consortium DHCP Client 4.1.1-P1 Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/usb0/92:93:b0:18:e8:b6 Sending on  LPF/usb0/92:93:b0:18:e8:b6 Sending on  Socket/fallback DHCPRELEASE on usb0 to 192.168.1.1 port 67 send_packet: Network is unreachable send_packet: please consult README file regarding broadcast address. done. Stopping PVR Stopping syslog-ng:. Sending all processes the TERM signal... Sending all processes the KILL signal... hwclock: can't open '/dev/misc/rtc': No such file or directory Unmounting remote filesystems... Stopping portmap daemon: portmap. Deactivating swap... Unmounting local filesystems... Rebooting... [67884.488464] Restarting system.

2-X, page X, ifconfig
root@beagleboard:~# ifconfig eth0     Link encap:Ethernet  HWaddr 00:50:B6:06:C4:57 inet addr:137.112.41.87 Bcast:137.112.41.255  Mask:255.255.255.0 inet6 addr: fe80::250:b6ff:fe06:c457/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500  Metric:1 RX packets:114 errors:0 dropped:0 overruns:0 frame:0 TX packets:119 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:20167 (19.6 KiB) TX bytes:18480 (18.0 KiB)

lo       Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436  Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:240 (240.0 b) TX bytes:240 (240.0 b)

usb0     Link encap:Ethernet  HWaddr BA:F7:63:C8:BC:A0 inet6 addr: fe80::b8f7:63ff:fec8:bca0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1492  Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:19 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:3656 (3.5 KiB)

root@beagleboard:~#

2-3, page 18, Linux Final Boot Messages
[67895.991638] usb 2-2.2: device descriptor read/64, error 18 [67896.002227] devtmpfs: mounted [67896.009552] Freeing init memory: 204K INIT: version 2.86 booting [67896.202636] usb 2-2.2: device descriptor read/64, error 18 Please wait: booting... Starting udev

2-4, page 29, Hello World, Embedded Style

 * 1) include 

int bss_var;       /* Uninitialized global variable */

int data_var = 1;  /* Initialized global variable */

int main(int argc, char **argv) { void *stack_var;            /* Local variable on the stack */ stack_var = (void *)main;  /* Don't let the compiler */ /* optimize it out */

printf("Hello, World! Main is executing at %p\n", stack_var); printf("This address (%p) is in our stack frame\n", &stack_var);

/* bss section contains uninitialized data */ printf("This address (%p) is in our bss section\n", &bss_var);

/* data section contains initializated data */ printf("This address (%p) is in our data section\n", &data_var);

return 0; }

2-5, page 29, Hello Output for Host Computer
host$ gcc helloWorld.c host$ ./a.out Hello, World! Main is executing at 0x80483e4 This address (0xbfb1890c) is in our stack frame This address (0x804a020) is in our bss section This address (0x804a014) is in our data section

2-5, page 29, Hello Output for Beagle
beagle$ gcc helloWorld.c beagle$ ./a.out Hello, World! Main is executing at 0x8380 This address (0xbea116c4) is in our stack frame This address (0x10670) is in our bss section This address (0x10668) is in our data section