Skip to content

Instantly share code, notes, and snippets.

View uditagarwal97's full-sized avatar
💭
I'm on vacation and may be slow to respond.

Udit Kumar Agarwal uditagarwal97

💭
I'm on vacation and may be slow to respond.
View GitHub Profile
@uditagarwal97
uditagarwal97 / Terminal output
Created March 18, 2018 10:39
FreeBSD bootup freeze when running it on BeagleBone Black
U-Boot 2017.09 (Feb 16 2018 - 01:38:14 +0000)
CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment
@uditagarwal97
uditagarwal97 / Terminal output
Created March 11, 2018 17:37
Building getentropy support on BBB BSP
reading rtems-app.img
31537 bytes read in 9 ms (3.3 MiB/s)
reading am335x-boneblack.dtb
189 bytes read in 6 ms (30.3 KiB/s)
## Booting kernel from Legacy Image at 80800000 ...
Image Name: RTEMS
Created: 2018-03-11 17:33:38 UTC
Image Type: ARM Linux Kernel Image (gzip compressed)
Data Size: 31473 Bytes = 30.7 KiB
Load Address: 80000000
@uditagarwal97
uditagarwal97 / am335x-boneblack.dts
Last active March 5, 2018 14:42
media01 test output incase of empty FDT
/dts-v1/;
/ {
model = "TI AM335x BeagleBone Black";
compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
};
@uditagarwal97
uditagarwal97 / Terminal output
Created February 25, 2018 22:40
Building media01 example for libbsd on BBB
=> fatload mmc 0 0x80800000 rtems-app.img
reading rtems-app.img
1933051 bytes read in 127 ms (14.5 MiB/s)
=> fatload mmc 0 0x88000000 am335x-boneblack.dtb
reading am335x-boneblack.dtb
32384 bytes read in 10 ms (3.1 MiB/s)
=> bootm 0x80800000 - 0x88000000
## Booting kernel from Legacy Image at 80800000 ...
Image Name: RTEMS
Created: 2018-02-25 22:10:39 UTC
@uditagarwal97
uditagarwal97 / Terminal output
Created February 25, 2018 22:06
Building I2C example for LIBBSD
reading uEnv.txt
160 bytes read in 5 ms (31.3 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 ...
Running uenvcmd ...
reading rtems-app.img
68540 bytes read in 12 ms (5.4 MiB/s)
reading am335x-boneblack.dtb
32384 bytes read in 10 ms (3.1 MiB/s)
## Booting kernel from Legacy Image at 80800000 ...
@uditagarwal97
uditagarwal97 / Error test
Last active February 28, 2018 10:52
Failing Media01 test on BBB
=> fatload mmc :0 0x80800000 media.img
reading media.img
1933249 bytes read in 131 ms (14.1 MiB/s)
=> bootm 0x80800000
## Booting kernel from Legacy Image at 80800000 ...
Image Name: RTEMS
Created: 2018-02-28 10:36:45 UTC
Image Type: ARM RTEMS Kernel Image (gzip compressed)
Data Size: 1933185 Bytes = 1.8 MiB
Load Address: 80000000
@uditagarwal97
uditagarwal97 / Output.txt
Created February 24, 2018 18:48
Building libbsd for beagleboneblack
U-Boot 2017.03-00002-gd12b1519b4 (Mar 14 2017 - 10:28:26 -0500), Build: jenkins-github_Bootload2
CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 512 MiB
Reset Source: Power-on reset has occurred.
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment
<ethaddr> not set. Validating first E-fuse MAC
@uditagarwal97
uditagarwal97 / commands.txt
Last active February 24, 2018 16:40
Building libbsd for xilinx_zynq_a9_qemu and running on QEMU
cd sandbox/
export sandbox=$PWD
git clone git://git.rtems.org/rtems-source-builder.git
git clone git://git.rtems.org/rtems.git
git clone git://git.rtems.org/rtems-libbsd.git
echo $sandbox
cd rtems-source-builder/rtems/
../source-builder/sb-check
../source-builder/sb-set-builder --prefix=$sandbox/5 5/rtems-arm
cd ..
@uditagarwal97
uditagarwal97 / Debugging BBB with FTDI
Last active February 24, 2018 16:42
Building RTEMS4.11.3 on Ubuntu14.04 for BBB
Serial Port Settings
Baud 115,200
Bits 8
Parity N
Stop Bits 1
Handshake None
Software used: minicom
----------------------------------------------------------Debugging U-BOOT-----------------------------------------------------
@uditagarwal97
uditagarwal97 / diff.patch
Last active February 24, 2018 16:43
Building RTEMS4.11.3 on Ubuntu14.04
--- hello_world_c/test.c 2015-05-29 00:43:29.000000000 +0530
+++ modified_hello_world/test.c 2018-02-22 21:06:56.163033118 +0530
@@ -10,9 +10,9 @@ rtems_task Init(
rtems_task_argument ignored
)
{
- printf( "\n\n*** HELLO WORLD TEST ***\n" );
- printf( "Hello World\n" );
- printf( "*** END OF HELLO WORLD TEST ***\n" );
+ printf( "\n\n*** HELLO WORLD GSOC ***\n" );