Skip to content

Commit

Permalink
Final commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NachiketKelkar committed Aug 22, 2019
1 parent 89c1259 commit 23d79fa
Show file tree
Hide file tree
Showing 210 changed files with 90,234 additions and 0 deletions.
18 changes: 18 additions & 0 deletions HW1/Makefiles/ARM/Shared/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#makefile for the gcc desktop linux environment
#PIC=Position independent code for x86 architectures
CFLAGS := -Wall -g -fPIC -I../inc
OBJECTS := testlib.o
CC = arm-cortex_a8-linux-gnueabihf-gcc

all: libtest.so

# Build the shared library
libtest.so: $(OBJECTS)
$(CC) -shared -o libtest.so $(OBJECTS)

testlib.o: testlib.c
$(CC) $(CFLAGS) -c testlib.c

clean:
rm -f $(OBJECTS)
rm -f libtest.so
16 changes: 16 additions & 0 deletions HW1/Makefiles/ARM/Static/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CFLAGS = -Wall -g -I../inc
OBJECTS = testlib.o
CC = arm-cortex_a8-linux-gnueabihf-gcc

all: libtest.a

# Build the static library
libtest.a: $(OBJECTS)
ar rc libtest.a $(OBJECTS)

testlib.o: testlib.c
$(CC) $(CFLAGS) -c testlib.c

clean:
rm -f $(OBJECTS)
rm -f libtest.a
22 changes: 22 additions & 0 deletions HW1/Makefiles/ARM/hello-arm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
CFLAGS := -c -Wall -I../inc
PROGS := hello-arm-static hello-arm-shared
CC = arm-cortex_a8-linux-gnueabihf-gcc

all: $(PROGS)

hello-arm.o: hello-arm.c
$(CC) $(CFLAGS) -o $@ $^

hello-arm-static: hello-arm.o
# $(CC) $(LDFLAGS) -o $@ $^ ../static/libtest.a
$(CC) -o $@ $^ -L../static -ltest -static

hello-arm-shared: hello-arm.o
$(CC) -o $@ $^ -L../shared -ltest

clean:
rm -f *.o
rm -f $(PROGS)

install:
cp $(PROGS) $(TARGET_DIR)/usr/local/bin
17 changes: 17 additions & 0 deletions HW1/Makefiles/Native/Shared/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#makefile for the gcc desktop linux environment
#PIC=Position independent code for x86 architectures
CFLAGS := -Wall -g -fPIC -I../inc
OBJECTS := testlib.o

all: libtest.so

# Build the shared library
libtest.so: $(OBJECTS)
$(CC) -shared -o libtest.so $(OBJECTS)

testlib.o: testlib.c
$(CC) $(CFLAGS) -c testlib.c

clean:
rm -f $(OBJECTS)
rm -f libtest.so
15 changes: 15 additions & 0 deletions HW1/Makefiles/Native/Static/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CFLAGS = -Wall -g -I../inc
OBJECTS = testlib.o

all: libtest.a

# Build the static library
libtest.a: $(OBJECTS)
ar rc libtest.a $(OBJECTS)

testlib.o: testlib.c
$(CC) $(CFLAGS) -c testlib.c

clean:
rm -f $(OBJECTS)
rm -f libtest.a
21 changes: 21 additions & 0 deletions HW1/Makefiles/Native/hello-arm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
CFLAGS := -c -Wall -I../inc
PROGS := hello-arm-static hello-arm-shared

all: $(PROGS)

hello-arm.o: hello-arm.c
$(CC) $(CFLAGS) -o $@ $^

hello-arm-static: hello-arm.o
# $(CC) $(LDFLAGS) -o $@ $^ ../static/libtest.a
$(CC) -o $@ $^ -L../static -ltest -static

hello-arm-shared: hello-arm.o
$(CC) -o $@ $^ -L../shared -ltest

clean:
rm -f *.o
rm -f $(PROGS)

install:
cp $(PROGS) $(TARGET_DIR)/usr/local/bin
18 changes: 18 additions & 0 deletions HW1/Makefiles/QEMU/Shared/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#makefile for the gcc desktop linux environment
#PIC=Position independent code for x86 architectures
CFLAGS := -Wall -g -fPIC -I../inc
OBJECTS := testlib.o
CC = arm-unknown-linux-gnueabi-gcc

all: libtest.so

# Build the shared library
libtest.so: $(OBJECTS)
$(CC) -shared -o libtest.so $(OBJECTS)

testlib.o: testlib.c
$(CC) $(CFLAGS) -c testlib.c

clean:
rm -f $(OBJECTS)
rm -f libtest.so
16 changes: 16 additions & 0 deletions HW1/Makefiles/QEMU/Static/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CFLAGS = -Wall -g -I../inc
OBJECTS = testlib.o
CC = arm-unknown-linux-gnueabi-gcc

all: libtest.a

# Build the static library
libtest.a: $(OBJECTS)
ar rc libtest.a $(OBJECTS)

testlib.o: testlib.c
$(CC) $(CFLAGS) -c testlib.c

clean:
rm -f $(OBJECTS)
rm -f libtest.a
22 changes: 22 additions & 0 deletions HW1/Makefiles/QEMU/hello-arm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
CFLAGS := -c -Wall -I../inc
PROGS := hello-arm-static hello-arm-shared
CC = arm-unknown-linux-gnueabi-gcc

all: $(PROGS)

hello-arm.o: hello-arm.c
$(CC) $(CFLAGS) -o $@ $^

hello-arm-static: hello-arm.o
# $(CC) $(LDFLAGS) -o $@ $^ ../static/libtest.a
$(CC) -o $@ $^ -L../static -ltest -static

hello-arm-shared: hello-arm.o
$(CC) -o $@ $^ -L../shared -ltest

clean:
rm -f *.o
rm -f $(PROGS)

install:
cp $(PROGS) $(TARGET_DIR)/usr/local/bin
Binary file added HW1/Report/Homework 1.pdf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added HW1/Screen Captures/Shared lib use.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added HW1/Screen Captures/Static and shared size.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added HW1/Screen Captures/diffrence in size QAMU.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions HW1/utils/Script_file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
System Information using shell scripting
1. User Information
nachiket

2. Operating system Type/Brand
Linux
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic

3. OS Distribution
Description: Ubuntu 18.04.1 LTS

4. OS Version
Release: 18.04

5. Kernel Version
4.15.0-43-generic

6. Kernel gcc version build
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


7. Kernel build time
#46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018

8. System Architecture Information
x86_64

9. Information on file system memory
Filesystem Size Used Avail Use% Mounted on
udev 5.7G 0 5.7G 0% /dev
tmpfs 1.2G 1.7M 1.2G 1% /run
/dev/sda1 106G 20G 81G 20% /
tmpfs 5.8G 94M 5.7G 2% /dev/shm
tmpfs 5.3M 4.1k 5.3M 1% /run/lock
tmpfs 5.8G 0 5.8G 0% /sys/fs/cgroup
/dev/loop1 2.5M 2.5M 0 100% /snap/gnome-calculator/180
/dev/loop0 4.0M 4.0M 0 100% /snap/gnome-system-monitor/51
/dev/loop2 92M 92M 0 100% /snap/core/4917
/dev/loop3 148M 148M 0 100% /snap/gnome-3-26-1604/70
/dev/loop5 37M 37M 0 100% /snap/gtk-common-themes/319
/dev/loop4 16M 16M 0 100% /snap/gnome-logs/37
/dev/loop6 14M 14M 0 100% /snap/gnome-characters/103
/dev/loop7 16M 16M 0 100% /snap/gnome-logs/45
/dev/loop9 4.0M 4.0M 0 100% /snap/gnome-system-monitor/57
/dev/loop8 37M 37M 0 100% /snap/gtk-common-themes/818
/dev/loop10 148M 148M 0 100% /snap/gnome-3-26-1604/74
/dev/loop11 94M 94M 0 100% /snap/core/6130
/dev/loop12 2.4M 2.4M 0 100% /snap/gnome-calculator/260
/dev/loop13 14M 14M 0 100% /snap/gnome-characters/139
tmpfs 1.2G 17k 1.2G 1% /run/user/121
tmpfs 1.2G 62k 1.2G 1% /run/user/1000

43 changes: 43 additions & 0 deletions HW1/utils/SysInfo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash
# Title: Displaying system information using shell scripting
# Author: Nachiket Kelkar
#Purpose: For Advanced Embedded Software Development class Homework assignment 1

echo "System Information using shell scripting"
echo "1. User Information"
users
echo ""

echo "2. Operating system Type/Brand"
uname
lsb_release -a
echo ""

echo "3. OS Distribution"
lsb_release -d
echo ""

echo "4. OS Version"
lsb_release -r
echo ""

echo "5. Kernel Version"
uname -r
echo ""

echo "6. Kernel gcc version build"
gcc --version
echo ""

echo "7. Kernel build time"
uname -v
echo ""

echo "8. System Architecture Information"
uname -i
echo ""

echo "9. Information on file system memory"
df -H
echo ""

Binary file added HW2/Report/HW2 report.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions HW2/Required Files/crontab
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*/10 * * * * /./sorting /output_for_sort.txt 2>&1
Loading

0 comments on commit 23d79fa

Please sign in to comment.