Friday, 4 September 2015

Follow these steps to setup Beagle Bone Black for Bare Metal Programming

Following Steps are For BEAGLE BONE BLACK in Debugging mode setup

In Windows Install oracle vm virtualbox extension pack from https://www.virtualbox.org/wiki/Downloads

To install the gcc arm compiler Tool Chain run the following command

sudo apt-get install arm-linux-gnueabihf*
download el_package.sh from https://sysplay.in/index.php?pagefile=downloads
chmod +x el_package.sh
./el_package.sh 
download bbb_package.sh

chmod +x bbb_package.sh
./bbb_package.sh 

1) Connect Beagle Bone Black pins on Jumper 1 ,
1 - Ground , 4 - TxD, 5 - RxD to CP210x USB to UART Bridge Virtual COM Port (VCP) hardware Gound TxD and RxD

2) Connect CP210x USB to UART Bridge Virtual COM Port (VCP) to PC where we should have already installed Linux Ubuntu 14.x.x what ever is latest version of OS from http://www.ubuntu.com/download/desktop/install-ubuntu-desktop

3) Documentation for installation of ubuntu is https://help.ubuntu.com/community/Installation

4) Login to Ubuntu Linux and press Ctrl+Alt+T to bring up the Terminal Window.

5) Connect Beagle Bone Black Mini USB to USB on the PC . This supplies power and also has connection and Inbuilt Ethernet over USB protocol as Network Demon running on Sitara 335x processor .

5) On the terminal setup  communication between Beagle Bone Black and PC via the CP210x USB to UART Bridge Virtual COM Port.

6) Command : sudo minicom -s

7)  Once the GUI is up select " Serial Port Setup " give parameters


8) Select exit from Minicom
9) type command "sudo minicom -o"
10)  Once Prompt comes press "Enter" key
11) Give password as "Root" following should be your screen once you login to beagle bone black over USB-> UART



12) Command to connect Ethernet Demon over USB  "ssh root@192.168.7.2"

13) Command to send files or copy files to Beagle Bone Black " scp uEnv.txt root@192.168.7.2:   "

13) The Minimal SOC has UART protocol implemented on SOC hardware . So for minimal instructions that support would be UART .

14) Once Ethernet Deamon is up you can have the Ethernet over USB protocol . You will need minimal OS to run Ethernet over USB .

15) Now you should have 2 Terminal one with  Serial over USB using Minicom application and 2nd one is  Ethernet over USB as shown in below screen .


Following Steps are Specific to Bare Metal Programming on BEAGLE BONE BLACK

Use Linker_first.lds
and startup_first_small.s
and blink_LED.c
and rules.mk
using  Makefile and build your .bin file

1) For Bare metal programming minimal required setup
2) Connect USB->UART and bring up the minicom window
3) Write Assembly code to set stack pointer and  Ram Entry location
4) Write Linker file that specifies ram location
5) Write C source with minimal Peripheral clock initialization and blink LED
6) Remove the MLO file from the bootable Flash in the Beagle Bone Black
7) Without an MLO file the Beagle Bone Black would not boot up it will stop at prompt CCCCC
8) In the Minicom press A and than S to initialize the Xmodem file transfer protocol and select the required file that needs to be transfered .
9) lsblk command should show the master boot record



Beagle Bone Black with UART debug connected

USB to UART debug adapter

Following steps is How the Boot up process comes up is 

[    1.239287] mmcblk0: mmc0:1234 SA04G 3.63 GiB                              
[    1.244749] Registering SWP/SWPB emulation handler                         
[    1.249992]  mmcblk0: p1                                                   
[    1.253825] registered taskstats version 1                                 
[    1.263351] tilcdc 4830e000.fb: no encoders/connectors found               
[    1.269415] tilcdc 4830e000.fb: failed to initialize mode setting          
[    1.279543] DCDC1: at 1500 mV                                              
[    1.286915] vdd_mpu: 925 <--> 1325 mV at 1325 mV                           
[    1.292778] vdd_core: 925 <--> 1150 mV at 1125 mV                          
[    1.298685] LDO1: at 1800 mV                                               
[    1.302729] LDO2: at 3300 mV                                               
[    1.307376] LDO3: 1800 mV                                                  
[    1.311128] LDO4: at 3300 mV                                               
[    1.314975] tps65217 0-0024: TPS65217 ID 0xe version 1.2                   
[    1.320656] mmc1: BKOPS_EN bit is not set                                  
[    1.325511] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write 
[    1.332862] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz                
[    1.340376] at24 1-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write 
[    1.348314] at24 1-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write 
[    1.356226] at24 1-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write 
[    1.363645] mmc1: new high speed MMC card at address 0001                  
[    1.370432] at24 1-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write 
[    1.377814] mmcblk1: mmc1:0001 MMC04G 3.65 GiB                             
[    1.382869] omap_i2c 4819c000.i2c: bus 1 rev0.11 at 100 kHz                
[    1.388947] mmcblk1boot0: mmc1:0001 MMC04G partition 1 1.00 MiB            
[    1.409917] mmcblk1boot1: mmc1:0001 MMC04G partition 2 1.00 MiB            
[    1.418287]  mmcblk1: p1 p2 p3                                             
[    1.423617]  mmcblk1boot1: unknown partition table                         
[    1.430158]  mmcblk1boot0: unknown partition table                         
[    1.451615] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6          
[    1.458048] davinci_mdio 4a101000.mdio: detected phy mask fffffffe         
[    1.465403] libphy: 4a101000.mdio: probed                                  
[    1.469683] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SM0
[    1.479501] Detected MACID = 78:a5:04:dc:f6:ac                             
[    1.485314] omap_rtc 44e3e000.rtc: setting system clock to 2014-04-23 21:19:09 UTC)
[    1.499068] ALSA device list:                                              
[    1.502318]   No soundcards found.                                         
[    1.506621] RAMDISK: ext2 filesystem found at block 0                      
[    1.512053] RAMDISK: Loading 8192KiB [1 disk] into ram disk... done.       
[    1.804106] VFS: Mounted root (ext2 filesystem) on device 1:0.             
[    1.810579] devtmpfs: mounted                                              
[    1.814084] Freeing unused kernel memory: 260K (c0738000 - c0779000)       
                                                                              
    System initialization...                                                  
                                                                              
    Hostname       : OMAP3EVM                                                 
    Filesystem     : v1.0.0                                                   
                                                                              
                                                                              
    Kernel release : Linux 3.12.9                                             
    Kernel version : #1 SMP Mon Jul 20 21:37:49 IST 2015                      
                                                                              
 Mounting /proc             : [SUCCESS]                                       
 Mounting /sys              : [SUCCESS]                                       
 Mounting /dev              : [SUCCESS]                                       
 Mounting /dev/pts          : [SUCCESS]                                       
 Enabling hot-plug          : [SUCCESS]                                       
 Populating /dev            : [SUCCESS]                                       
 Mounting other filesystems : [SUCCESS]                                       
 Starting syslogd           : [SUCCESS]                                       
 Starting telnetd           : [SUCCESS]                                       
                                                                              
System initialization complete.                                               
                                                                              
Please press Enter to activate this console.                                  
/ # lsblk                                                                     
-/bin/ash: lsblk: not found                                                   
/ # ls /dev                                                                   
console             ram10               tty22               tty54             
cpu_dma_latency     ram11               tty23               tty55             
full                ram12               tty24               tty56             
i2c-0               ram13               tty25               tty57             
i2c-1               ram14               tty26               tty58             
input               ram15               tty27               tty59             
kmem                ram2                tty28               tty6              
kmsg                ram3                tty29               tty60             
log                 ram4                tty3                tty61             
loop-control        ram5                tty30               tty62             
loop0               ram6                tty31               tty63             
loop1               ram7                tty32               tty7              
loop2               ram8                tty33               tty8              
loop3               ram9                tty34               tty9              
loop4               random              tty35               ttyO0             
loop5               rfkill              tty36               ttyS0             
loop6               root                tty37               ttyS1             
loop7               rtc0                tty38               ttyS2             
mem                 snd                 tty39               ttyS3             
mmcblk0             tty                 tty4                ttyprintk         
mmcblk0p1           tty0                tty40               ubi_ctrl          
mmcblk1             tty1                tty41               urandom           
mmcblk1boot0        tty10               tty42               usbmon0           
mmcblk1boot1        tty11               tty43               usbmon1           
mmcblk1p1           tty12               tty44               usbmon2           
mmcblk1p2           tty13               tty45               vcs               
mmcblk1p3           tty14               tty46               vcs1              
network_latency     tty15               tty47               vcsa              
network_throughput  tty16               tty48               vcsa1             
null                tty17               tty49               watchdog          
psaux               tty18               tty5                watchdog0         
ptmx                tty19               tty50               zero              
pts                 tty2                tty51                                 
ram0                tty20               tty52                                 
ram1                tty21               tty53                                 
/ # ls /dev/mmcblk                                                            
mmcblk0       mmcblk1       mmcblk1boot1  mmcblk1p2                           
mmcblk0p1     mmcblk1boot0  mmcblk1p1     mmcblk1p3                           
/ # mount /dev/mmcblk1p1 /mnt                                                 
mount: mounting /dev/mmcblk1p1 on /mnt failed: No such file or directory      
/ # mount /dev/mmcblk1p1 /boot                                                
[  107.810899] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may b.
/ # cd /boot                                                                  
/boot # ls                                                                    
App                   README.htm            initrd.img                        
Built                 README.md             scripts                           
Docs                  SOC.sh                u-boot.img                        
Drivers               START.htm             u.txt                             
ID.txt                am335x-boneblack.dtb  uEnv.txt                          
LICENSE.txt           autorun.inf           uInitrd                           
M                     debug                 zImage                            
Org                   dtbs                                                    
/boot # mv M MLO                                                              
/boot # ls                                                                    
App                   README.htm            initrd.img                        
Built                 README.md             scripts                           
Docs                  SOC.sh                u-boot.img                        
Drivers               START.htm             u.txt                             
ID.txt                am335x-boneblack.dtb  uEnv.txt                          
LICENSE.txt           autorun.inf           uInitrd                           
MLO                   debug                 zImage                            
Org                   dtbs                                                    
/boot # cd /                                                                  
/ # umount /boot                                                              
/ # poweroff                                                                  
umount: mdev busy - remounted read-only                                       
/ # umount: devtmpfs busy - remounted read-only                               
umount: can't remount /dev/root read-only                                     
umount: can't remount rootfs read-only                                        
The system is going down NOW!                                                 
Sent SIGTERM to all processes                                                 
Sent SIGKILL to all processes                                                 
Requesting system poweroff                                                    
[  150.035389] musb-hdrc musb-hdrc.1.auto: remove, state 4                    
[  150.046426] usb usb2: USB disconnect, device number 1                      
[  150.052613] musb-hdrc musb-hdrc.1.auto: USB bus 2 deregistered             
[  150.059223] musb-hdrc musb-hdrc.0.auto: remove, state 4                    
[  150.064814] usb usb1: USB disconnect, device number 1                      
[  150.070755] musb-hdrc musb-hdrc.0.auto: USB bus 1 deregistered             
[  150.077972] reboot: System halted                                          
                                                                              
U-Boot SPL 2014.04 (Sep 01 2015 - 20:40:59)                                   
reading args                                                                  
spl_load_image_fat_os: error reading image args, err - -1                     
reading u-boot.img                                                            
reading u-boot.img                                                            
                                                                              
                                                                              
U-Boot 2014.04 (Sep 01 2015 - 20:40:59)                                       
                                                                              
I2C:   ready                                                                  
DRAM:  512 MiB                                                                
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                         
Using default environment                                                     
                                                                              
Net:   <ethaddr> not set. Validating first E-fuse MAC                         
cpsw, usb_ether                                                               
Hit any key to stop autoboot:  0                                              
Card did not respond to voltage select!                                       
mmc0(part 0) is current device                                                
Card did not respond to voltage select!                                       
mmc1(part 0) is current device                                                
SD/MMC found on device 1                                                      
reading uEnv.txt                                                              
441 bytes read in 10 ms (43 KiB/s)                                            
Loaded environment from uEnv.txt                                              
Importing environment from mmc ...                                            
Running uenvcmd ...                                                           
reading zImage                                                                
4473160 bytes read in 302 ms (14.1 MiB/s)                                     
reading am335x-boneblack.dtb                                                  
25756 bytes read in 16 ms (1.5 MiB/s)                                         
Kernel image @ 0x80200000 [ 0x000000 - 0x444148 ]                             
## Flattened Device Tree blob at 80f80000                                     
   Booting using the fdt blob at 0x80f80000                                   
   Using Device Tree in place at 80f80000, end 80f8949b                       
                                                                              
Starting kernel ...                                                           
                                                                              
[    0.000000] Booting Linux on physical CPU 0x0                              
[    0.000000] Initializing cgroup subsys cpu                                 
[    0.000000] Initializing cgroup subsys cpuacct                             
[    0.000000] Linux version 3.12.9 (chandrashekhar-kalvacherla@chandrashekharkalvach5
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cace
[    0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: TI AM335x Beage
[    0.000000] Memory policy: ECC disabled, Data cache writeback              
[    0.000000] CPU: All CPU(s) started in SVC mode.                           
[    0.000000] AM335X ES2.1 (sgx neon )                                       
[    0.000000] PERCPU: Embedded 8 pages/cpu @c0c57000 s9664 r8192 d14912 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 12
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw; ro;
[    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] allocated 1048576 bytes of page_cgroup                         
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgrs
[    0.000000] Memory: 509140K/523264K available (5281K kernel code, 436K rwdata, 207)
[    0.000000] Virtual kernel memory layout:                                  
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)              
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)              
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)              
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)              
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)              
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)              
[    0.000000]       .text : 0xc0008000 - 0xc0737700   (7358 kB)              
[    0.000000]       .init : 0xc0738000 - 0xc07795c0   ( 262 kB)              
[    0.000000]       .data : 0xc077a000 - 0xc07e73a0   ( 437 kB)              
[    0.000000]        .bss : 0xc07e73a8 - 0xc0847910   ( 386 kB)              
[    0.000000] Hierarchical RCU implementation.                               
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.          
[    0.000000] NR_IRQS:16 nr_irqs:16 16                                       
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] Total of 128 interrupts on 1 active controller                 
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz                  
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] OMAP clocksource: timer1 at 24000000 Hz                        
[    0.000000] Console: colour dummy device 80x30                             
[    0.000311] Calibrating delay loop... 663.55 BogoMIPS (lpj=1327104)        
[    0.027786] pid_max: default: 32768 minimum: 301                           
[    0.027920] Security Framework initialized                                 
[    0.027988] Mount-cache hash table entries: 512                            
[    0.034199] Initializing cgroup subsys memory                              
[    0.034268] Initializing cgroup subsys devices                             
[    0.034282] Initializing cgroup subsys freezer                             
[    0.034293] Initializing cgroup subsys blkio                               
[    0.034376] CPU: Testing write buffer coherency: ok                        
[    0.034785] CPU0: thread -1, cpu 0, socket -1, mpidr 0                     
[    0.034844] Setting up static identity map for 0xc04ffeb8 - 0xc04fff10     
[    0.035746] Brought up 1 CPUs                                              
[    0.035758] SMP: Total of 1 processors activated.                          
[    0.035825] CPU: All CPU(s) started in SVC mode.                           
[    0.036613] devtmpfs: initialized                                          
[    0.040830] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.045529] omap_hwmod: debugss: _wait_target_disable failed               
[    0.099218] pinctrl core: initialized pinctrl subsystem                    
[    0.099610] regulator-dummy: no parameters                                 
[    0.100058] NET: Registered protocol family 16                             
[    0.100565] DMA: preallocated 256 KiB pool for atomic coherent allocations 
[    0.101005] cpuidle: using governor ladder                                 
[    0.101018] cpuidle: using governor menu                                   
[    0.106171] platform 49000000.edma: alias fck already exists               
[    0.106190] platform 49000000.edma: alias fck already exists               
[    0.106203] platform 49000000.edma: alias fck already exists               
[    0.107010] OMAP GPIO hardware version 0.1                                 
[    0.112482] hw-breakpoint: debug architecture 0x4 unsupported.             
[    0.120843] bio: create slab <bio-0> at 0                                  
[    0.127165] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver   
[    0.127607] vmmcsd_fixed: 3300 mV                                          
[    0.128979] SCSI subsystem initialized                                     
[    0.129227] usbcore: registered new interface driver usbfs                 
[    0.129288] usbcore: registered new interface driver hub                   
[    0.129503] usbcore: registered new device driver usb                      
[    0.129798] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e1080e
[    0.129824] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral 
[    0.129856] omap_i2c 4819c000.i2c: could not find pctldev for node /pinmux@44e1080e
[    0.129872] platform 4819c000.i2c: Driver omap_i2c requests probe deferral 
[    0.129934] media: Linux media interface: v0.10                            
[    0.129992] Linux video capture interface: v2.00                           
[    0.130453] Advanced Linux Sound Architecture Driver Initialized.          
[    0.131528] Switched to clocksource timer1                                 
[    0.141122] NET: Registered protocol family 2                              
[    0.141888] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.141970] TCP bind hash table entries: 4096 (order: 4, 81920 bytes)      
[    0.142061] TCP: Hash tables configured (established 4096 bind 4096)       
[    0.142142] TCP: reno registered                                           
[    0.142157] UDP hash table entries: 256 (order: 1, 12288 bytes)            
[    0.142183] UDP-Lite hash table entries: 256 (order: 1, 12288 bytes)       
[    0.142475] NET: Registered protocol family 1                              
[    0.142927] RPC: Registered named UNIX socket transport module.            
[    0.142941] RPC: Registered udp transport module.                          
[    0.142949] RPC: Registered tcp transport module.                          
[    0.142956] RPC: Registered tcp NFSv4.1 backchannel transport module.      
[    0.145013] audit: initializing netlink socket (disabled)                  
[    0.145071] type=2000 audit(0.140:1): initialized                          
[    0.146548] VFS: Disk quotas dquot_6.5.2                                   
[    0.146697] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)     
[    0.147629] NFS: Registering the id_resolver key type                      
[    0.147709] Key type id_resolver registered                                
[    0.147720] Key type id_legacy registered                                  
[    0.147781] msgmni has been set to 994                                     
[    0.150179] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.150359] io scheduler noop registered                                   
[    0.150370] io scheduler deadline registered                               
[    0.150404] io scheduler cfq registered (default)                          
[    0.151084] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.152386] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled        
[    0.153823] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 300000
[    0.809662] console [ttyO0] enabled                                        
[    0.814057] [drm] Initialized drm 1.1.0 20060810                           
[    0.826943] brd: module loaded                                             
[    0.834613] loop: module loaded                                            
[    0.839828] libphy: Fixed MDIO Bus: probed                                 
[    0.845095] usbcore: registered new interface driver usbserial             
[    0.853057] musb-hdrc musb-hdrc.0.auto: Falied to request rx1.             
[    0.859361] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver              
[    0.865709] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus numbe1
[    0.874207] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002  
[    0.881371] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.888979] usb usb1: Product: MUSB HDRC host driver                       
[    0.894210] usb usb1: Manufacturer: Linux 3.12.9 musb-hcd                  
[    0.899897] usb usb1: SerialNumber: musb-hdrc.0.auto                       
[    0.905700] hub 1-0:1.0: USB hub found                                     
[    0.909720] hub 1-0:1.0: 1 port detected                                   
[    0.915582] musb-hdrc musb-hdrc.1.auto: Falied to request rx1.             
[    0.921829] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver              
[    0.928169] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus numbe2
[    0.936633] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002  
[    0.943796] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.951403] usb usb2: Product: MUSB HDRC host driver                       
[    0.956634] usb usb2: Manufacturer: Linux 3.12.9 musb-hcd                  
[    0.962323] usb usb2: SerialNumber: musb-hdrc.1.auto                       
[    0.968131] hub 2-0:1.0: USB hub found                                     
[    0.972149] hub 2-0:1.0: 1 port detected                                   
[    0.983205] mousedev: PS/2 mouse device common for all mice                
[    0.990600] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    0.998153] 44e3e000.rtc: already running                                  
[    1.002588] i2c /dev entries driver                                        
[    1.006501] Driver for 1-wire Dallas network protocol.                     
[    1.013388] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec 
[    1.023932] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25  
[    1.031126] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24  
[    1.067896] edma-dma-engine edma-dma-engine.0: allocated channel for 0:3   
[    1.076538] edma-dma-engine edma-dma-engine.0: allocated channel for 0:2   
[    1.119995] ledtrig-cpu: registered to indicate activity on CPUs           
[    1.126748] hidraw: raw HID events driver (C) Jiri Kosina                  
[    1.132667] usbcore: registered new interface driver usbhid                
[    1.138589] usbhid: USB HID core driver                                    
[    1.144159] TCP: cubic registered                                          
[    1.147716] Initializing XFRM netlink socket                               
[    1.152296] NET: Registered protocol family 17                             
[    1.157110] NET: Registered protocol family 15                             
[    1.162134] Key type dns_resolver registered                               
[    1.166828] ThumbEE CPU extension supported.                               
[    1.171375] Registering SWP/SWPB emulation handler                         
[    1.180215] registered taskstats version 1                                 
[    1.186336] tilcdc 4830e000.fb: no encoders/connectors found               
[    1.192374] tilcdc 4830e000.fb: failed to initialize mode setting          
[    1.202548] DCDC1: at 1500 mV                                              
[    1.206761] vdd_mpu: 925 <--> 1325 mV at 1325 mV                           
[    1.212689] vdd_core: 925 <--> 1150 mV at 1125 mV                          
[    1.217806] mmc1: BKOPS_EN bit is not set                                  
[    1.222906] LDO1: at 1800 mV                                               
[    1.226941] LDO2: at 3300 mV                                               
[    1.231685] LDO3: 1800 mV                                                  
[    1.235057] mmc1: new high speed MMC card at address 0001                  
[    1.241246] LDO4: at 3300 mV                                               
[    1.244861] mmcblk0: mmc1:0001 MMC04G 3.65 GiB                             
[    1.250298] tps65217 0-0024: TPS65217 ID 0xe version 1.2                   
[    1.256218] mmcblk0boot0: mmc1:0001 MMC04G partition 1 1.00 MiB            
[    1.263213] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write 
[    1.270731] mmcblk0boot1: mmc1:0001 MMC04G partition 2 1.00 MiB            
[    1.277083] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz                
[    1.285325] at24 1-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write 
[    1.292670]  mmcblk0: p1 p2 p3                                             
[    1.298105] at24 1-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write 
[    1.305532]  mmcblk0boot1: unknown partition table                         
[    1.312262] at24 1-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write 
[    1.319666]  mmcblk0boot0: unknown partition table                         
[    1.325606] at24 1-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write 
[    1.332960] omap_i2c 4819c000.i2c: bus 1 rev0.11 at 100 kHz                
[    1.387561] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6          
[    1.393998] davinci_mdio 4a101000.mdio: detected phy mask fffffffe         
[    1.401283] libphy: 4a101000.mdio: probed                                  
[    1.405560] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SM0
[    1.415346] Detected MACID = 78:a5:04:dc:f6:ac                             
[    1.421098] omap_rtc 44e3e000.rtc: setting system clock to 2014-04-23 21:21:57 UTC)
[    1.434912] ALSA device list:                                              
[    1.438164]   No soundcards found.                                         
[    1.468578] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: )
[    1.477232] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.  
[    1.486512] devtmpfs: mounted                                              
[    1.489974] Freeing unused kernel memory: 260K (c0738000 - c0779000)       
INIT: version 2.88 booting                                                    
[info] Using makefile-style concurrent boot in runlevel S.                    
findfs: unable to resolve 'UUID=357eb00f-242c-410d-8cb7-d41c8d9dd1ce'         
[....] Starting the hotplug events dispatcher: udevd[    2.533464] udevd[188]: starti5
. ok                                                                          
[....] Synthesizing the initial hotplug events...done.                        
[....] Waiting for /dev to be fully populated...done.                         
[....] Setting preliminary keymap...done.                                     
[....] Setting parameters of disc: (none). ok                                 
[....] Activating swap...done.                                                
[    6.424239] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)                  
[....] Checking root file system...fsck from util-linux 2.20.1                
rootfs: clean, 78067/129024 files, 380925/524288 blocks                       
done.                                                                         
[    6.815045] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro       
[....] Cleaning up temporary files.../etc/init.d/checkroot-bootclean.sh: 22: /etc/inim
[info] Loading kernel module mt7601Usta.                                      
libkmod: ERROR ../libkmod/libkmod.c:505 kmod_lookup_alias_from_builtin_file: could no'
FATAL: Module mt7601Usta not found.                                           
[....] Activating lvm and md swap...done.                                     
[....] Checking file systems...fsck from util-linux 2.20.1                    
dosfsck 3.0.13, 30 Jun 2012, FAT32, LFN                                       
There are differences between boot sector and its backup.                     
Differences: (offset:original/backup)                                         
  65:01/00                                                                    
  Not automatically fixing this.                                              
/dev/mmcblk0p1: 173 files, 165551/193576 clusters                             
root contains a file system with errors, check forced.                        
Entry 'History_31st_Aug_1st_Sept_2nd_Sept_2015.txt' in / (2) has deleted/unused inod.
root: Entry 'thread_mutex_error' in / (2) has deleted/unused inode 38.  CLEARED.
root: Entry 'thread_cond' in / (2) has deleted/unused inode 39.  CLEARED.     
root: Entry 'thread_mutex_attr' in / (2) has deleted/unused inode 40.  CLEARED.
root: Entry 'thread_rwlock' in / (2) has deleted/unused inode 41.  CLEARED.   
root: Entry 'thread_deadlock' in / (2) has deleted/unused inode 42.  CLEARED. 
root: Entry 'thread_return' in / (2) has deleted/unused inode 43.  CLEARED.   
root: Entry 'thread_sem' in / (2) has deleted/unused inode 44.  CLEARED.      
root: Entry 'thread_ipc2' in / (2) has deleted/unused inode 45.  CLEARED.     
root: Entry 'thread_logging' in / (2) has deleted/unused inode 46.  CLEARED.  
root: Entry 'thread_cancel_cleanup' in / (2) has deleted/unused inode 47.  CLEARED.
root: Entry 'thread_unsafe' in / (2) has deleted/unused inode 48.  CLEARED.   
root: 54/102336 files (1.9% non-contiguous), 18546/409344 blocks             
fsck died with exit status 1                                                  
done.                                                                         
[....] Mounting local filesystems...[   11.158540] FAT-fs (mmcblk0p1): Volume was not.
[   11.252570] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: )
done.                                                                         
[....] Activating swapfile swap...done.                                       
[....] Root filesystem is read-only; mounting tmpfs on /tmp ... (warning).    
[....] Cleaning up temporary files.... ok                                     
[....] Setting kernel variables ...done.                                      
[....] Configuring network interfaces...done.                                 
[....] Cleaning up temporary files...[   13.332382] net eth0: initializing cpsw versi)
[   13.347182] net eth0: phy found : id is : 0x7c0f1                          
[   13.358155] libphy: PHY 4a101000.mdio:01 not found                         
[   13.363363] net eth0: phy 4a101000.mdio:01 not found on slave 1            
. ok                                                                          
[....] Setting up ALSA...warning: 'alsactl restore' failed with error message 'alsact.
[info] Setting console screen modes.                                          
setterm: cannot (un)set powersave mode: Inappropriate ioctl for device        
[info] Skipping font and keymap setup (handled by console-setup).             
[....] Setting up console font and keymap.../etc/console-setup is not writable. No fi.
done.                                                                         
[....] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix. ok   
[....] startpar: service(s) returned failure: checkroot-bootclean.sh ... failed!
INIT: Entering runlevel: 2                                                    
[info] Using makefile-style concurrent boot in runlevel 2.                    
savelog: directory /var/log/ is not writable                                  
/etc/init.d/bootlogs: 23: /etc/init.d/bootlogs: cannot create /var/log/dmesg: Read-onm
chgrp: changing group of `/var/log/dmesg': Read-only file system              
touch: setting times of `/var/lib/sudo': Read-only file system                
[....] Starting Remote Desktop Protocol server : xrdp sesmanerror opening log file [/.
[....] Starting enhanced syslogd: rsyslogd[   15.756410] g_multi gadget: using randoms
[   15.780575] usb0: MAC 3a:64:35:bf:1c:bb                                    
[   15.784724] usb0: HOST MAC 78:a5:04:dc:f6:ae                               
.                                                                             
[   15.848218] g_multi gadget: Mass Storage Function, version: 2009/09/11     
[   15.855192] g_multi gadget: Number of LUNs=1                               
[   15.880379]  lun0: LUN: removable file: /dev/mmcblk0p3                     
[   15.910793] g_multi gadget: Multifunction Composite Gadget                 
[   15.916706] g_multi gadget: g_multi ready                                  
[....] Starting ACPI services...RTNETLINK1 answers: No such file or directory 
acpid: error talking to the kernel via netlink                                
. ok                                                                          
[....] Starting web server: apache2apache2: Could not reliably determine the server'se
(30)Read-only file system: apache2: could not open error log file /var/log/apache2/er.
Unable to open logs                                                           
Action 'start' failed.                                                        
The Apache error log may have more information.                               
[   16.454709] g_multi gadget: high-speed config #2: Multifunction with CDC ECM
 failed!                                                                      
[....] Loading cpufreq kernel modules...done (none).                          
[....] Starting periodic command scheduler: cron. ok                          
[....] Starting system message bus: dbus. ok                                  
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. ok                    
[....] CPUFreq Utilities: Setting ondemand CPUFreq governor...disabled, governor not .
[....] Starting Light Display Manager: lightdm. ok                            
saned disabled; edit /etc/default/saned                                       
[....] Starting OpenBSD Secure Shell server: sshdStarting very small Busybox based DH.
udhcpd.                                                                       
. ok                                                                          
[....] Starting Network connection manager: wicd. ok                          
[....] startpar: service(s) returned failure: xrdp apache2 ... failed!        
                                                                              
Debian GNU/Linux 7 beaglebone ttyO0                                           
                                                                              
default username:password is [debian:temppwd]                                 
                                                                              
Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian             
                                                                              
The IP Address for usb0 is: 192.168.7.2                                       
beaglebone login: root                                                        
Linux beaglebone 3.12.9 #1 SMP Tue Sep 1 22:10:33 IST 2015 armv7l             
                                                                              
The programs included with the Debian GNU/Linux system are free software;     
the exact distribution terms for each program are described in the            
individual files in /usr/share/doc/*/copyright.                               
                                                                              
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent             
permitted by applicable law.                                                  
root@beaglebone:~# ls /dev/mmcblk*                                            
/dev/mmcblk0       /dev/mmcblk0boot1  /dev/mmcblk0p2                          
/dev/mmcblk0boot0  /dev/mmcblk0p1     /dev/mmcblk0p3                          
root@beaglebone:~# lsblk                                                      
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT                             
mmcblk0boot0 179:8    0     1M  1 disk                                        
mmcblk0boot1 179:16   0     1M  1 disk                                        
mmcblk0      179:0    0   3.7G  0 disk                                        
��├��─mmcblk0p1  179:1    0    96M  0 part /boot/uboot                        
��├��─mmcblk0p2  179:2    0     2G  0 part /                                  
��└��─mmcblk0p3  179:3    0   1.6G  0 part /root                              
root@beaglebone:~#

No comments:

Post a Comment